Versions in this module Expand all Collapse all v1 v1.4.1 May 3, 2026 Changes in this version + var ErrNotSupported = errors.New("cache: store does not support this operation") + func Invalidate(s store.KV, key string) error + func InvalidatePrefix(s store.KV, prefix string) error + func New(config ...Config) celeris.HandlerFunc + type Config struct + ExcludeHeaders []string + HeaderName string + IncludeHeaders []string + KeyGenerator func(*celeris.Context) string + MaxBodyBytes int + Methods []string + RespectCacheControl bool + Singleflight bool + Skip func(*celeris.Context) bool + SkipPaths []string + StatusFilter func(status int) bool + Store store.KV + TTL time.Duration + VaryHeaders []string + type MemoryStore struct + func NewMemoryStore(config ...MemoryStoreConfig) *MemoryStore + func (m *MemoryStore) Close() + func (m *MemoryStore) Delete(_ context.Context, key string) error + func (m *MemoryStore) DeletePrefix(_ context.Context, prefix string) error + func (m *MemoryStore) Get(_ context.Context, key string) ([]byte, error) + func (m *MemoryStore) Scan(_ context.Context, prefix string) ([]string, error) + func (m *MemoryStore) Set(_ context.Context, key string, value []byte, ttl time.Duration) error + type MemoryStoreConfig struct + CleanupContext context.Context + CleanupInterval time.Duration + MaxEntries int + Shards int