# `Imp.Training.FastSlow.ReuseCache`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/training/fast_slow/reuse_cache.ex#L134)

Validated cache of portable rollout trajectories keyed by identity.

# `key`

```elixir
@type key() :: {String.t(), String.t(), String.t()}
```

# `t`

```elixir
@type t() :: %Imp.Training.FastSlow.ReuseCache{
  cycle: non_neg_integer(),
  entries: %{required(key()) =&gt; [Imp.Training.FastSlow.CachedTrajectory.t()]},
  theta_id: String.t()
}
```

# `claim`

```elixir
@spec claim(t(), String.t(), String.t(), String.t()) ::
  {:ok, Imp.Training.FastSlow.CachedTrajectory.t(), t()} | :miss
```

Claims one exact GEPA trajectory for an RL `(problem, prompt)` slot.

# `new!`

```elixir
@spec new!(non_neg_integer(), String.t(), [Imp.Training.FastSlow.CachedTrajectory.t()]) ::
  t()
```

# `next_cycle`

```elixir
@spec next_cycle(t(), non_neg_integer(), String.t()) :: t()
```

Clears all prior GEPA samples when a new fast cycle starts.

---

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