Documentation
¶
Overview ¶
Package redis provides a Redis and Valkey backed authstate.Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Prefix string
Namespace string
Now func() time.Time
MaxKeyBytes int
MaxValueBytes int
}
Options controls key isolation, resource bounds, and expiry behavior.
type Store ¶
type Store[T any] struct { // contains filtered or unexported fields }
Store persists expiring, single-use authentication state in Redis or Valkey.
func NewStore ¶
func NewStore[T any](client goredis.UniversalClient, codec authstate.Codec[T], options Options) (*Store[T], error)
NewStore constructs a Redis or Valkey backed Store. The caller retains ownership of client and is responsible for closing it.
Click to show internal directories.
Click to hide internal directories.