# `PhoenixAI.Store.Memory.Strategies.SlidingWindow`
[🔗](https://github.com/franciscpd/phoenix-ai-store/blob/v0.1.0/lib/phoenix_ai/store/memory/strategies/sliding_window.ex#L1)

A memory strategy that keeps the last N messages.

## Options

  * `:last` - the number of most recent messages to keep (default: 50)

## Priority

Returns 100, making it a low-priority (late-running) strategy.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
