(ctx context.Context, key string)
| 27 | // TTL is configured at construction time, not per-operation. |
| 28 | type Cache[T any] interface { |
| 29 | Get(ctx context.Context, key string) (T, bool, error) |
| 30 | Set(ctx context.Context, key string, value T) error |
| 31 | Delete(ctx context.Context, key string) error |
| 32 | Purge(ctx context.Context) error |
no outgoing calls