Documentation ¶
Index ¶
- type Point
- type TokenStore
- func (a TokenStore[C]) CreateStorePoint(ctx context.Context, valid time.Duration, claims *C) (uint64, error)
- func (a TokenStore[C]) CreateStorePointWithID(ctx context.Context, id uint64, valid time.Duration, claims *C) error
- func (a TokenStore[C]) MPointGet(ctx context.Context, ids ...uint64) ([]interface{}, error)
- func (a TokenStore[C]) NewStorePoint(id uint64) Point[C]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenStore ¶
type TokenStore[C any] struct { // contains filtered or unexported fields }
func NewTokenStore ¶
func NewTokenStore[C any](Client *redis.Client, keyPrefix string) TokenStore[C]
func (TokenStore[C]) CreateStorePoint ¶
func (TokenStore[C]) CreateStorePointWithID ¶ added in v1.17.36
func (TokenStore[C]) MPointGet ¶ added in v1.19.7
func (a TokenStore[C]) MPointGet(ctx context.Context, ids ...uint64) ([]interface{}, error)
func (TokenStore[C]) NewStorePoint ¶
func (a TokenStore[C]) NewStorePoint(id uint64) Point[C]
Click to show internal directories.
Click to hide internal directories.