cache

package
v0.0.0-...-eeabb0f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RevocationCache

type RevocationCache interface {
	IsTokenRevoked(ctx context.Context, jti string) (revoked bool, found bool)
	SetTokenRevoked(ctx context.Context, jti string, ttl time.Duration) error
	GetSubjectCutoff(ctx context.Context, subject string) (cutoff time.Time, found bool)
	SetSubjectCutoff(ctx context.Context, subject string, cutoff time.Time, ttl time.Duration) error
	DeleteTokenRevocation(ctx context.Context, jti string) error
}

RevocationCache defines the contract for accelerating revocation checks. Cache is performance-oriented; Store remains the definitive source of truth.

func New

New wraps a core cache.Cache into a domain-specific RevocationCache.

Jump to

Keyboard shortcuts

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