Versions in this module Expand all Collapse all v0 v0.0.3 May 3, 2026 Changes in this version type InMemoryCache + func (c *InMemoryCache) Stop() v0.0.2 Apr 1, 2026 Changes in this version + type Cache interface + Release func(ctx context.Context, jti string) error + Reserve func(ctx context.Context, jti string, expiresAt time.Time) (bool, error) + type CacheError struct + Err error + func (e *CacheError) Error() string + func (e *CacheError) Unwrap() error + type InMemoryCache struct + func NewInMemoryCache(ttl time.Duration) *InMemoryCache + func (c *InMemoryCache) Release(_ context.Context, jti string) error + func (c *InMemoryCache) Reserve(_ context.Context, jti string, expiresAt time.Time) (bool, error) + type RedisCache struct + func NewRedisCache(client *redis.Client, ttl time.Duration) *RedisCache + func (c *RedisCache) Release(ctx context.Context, jti string) error + func (c *RedisCache) Reserve(ctx context.Context, jti string, expiresAt time.Time) (bool, error)