jwtcache

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func New(client *redis.Client, opts ...Options) store.KV

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.

Types

type Options

type Options struct {
	// KeyPrefix is prepended to every JWKS cache key. Default: "jwks:".
	KeyPrefix string
}

Options configure the JWKS Redis cache.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL