Documentation
¶
Overview ¶
Package jwtcache provides a convenience store.KV constructor for JWT middleware's JWKSCache option. It wraps a native celeris driver/redis.Client under a JWKS-specific key prefix so multiple celeris middleware can safely share one Redis deployment.
Callers can alternatively pass any other store.KV (MemoryKV, Postgres-backed, or a custom implementation); jwtcache.New is purely a convenience wrapper with sensible defaults.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a store.KV suitable for use as JWT Config.JWKSCache. Internally reuses middleware/session/redisstore.Store with a JWKS-specific prefix; both adapters share the same mapping from driver/redis semantics to the store.KV contract.