jwtmccache

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 jwtmccache provides a convenience store.KV constructor for JWT middleware's JWKSCache option backed by memcached.

Mirror of middleware/jwt/jwtcache but built on middleware/session/memcachedstore. Either backend is valid for Config.JWKSCache — the middleware only needs Get/Set/Delete semantics; no extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a store.KV suitable for use as JWT Config.JWKSCache. Internally reuses session/memcachedstore.Store with a JWKS-specific prefix.

Types

type Options

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

Options configure the JWKS memcached cache.

Jump to

Keyboard shortcuts

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