Documentation ¶
Index ¶
- type TokenCacheRedis
- func (t *TokenCacheRedis) DeleteTokenByUid(ctx context.Context, userID string) error
- func (t *TokenCacheRedis) GetTokensWithoutError(ctx context.Context, userID string) (map[string]int32, error)
- func (t *TokenCacheRedis) SetTokenExpire(ctx context.Context, userID string, token string, expire time.Duration) error
- type TokenInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenCacheRedis ¶
type TokenCacheRedis struct {
// contains filtered or unexported fields
}
func NewTokenInterface ¶
func NewTokenInterface(rdb redis.UniversalClient, token *tokenverify.Token) *TokenCacheRedis
func (*TokenCacheRedis) DeleteTokenByUid ¶ added in v1.8.0
func (t *TokenCacheRedis) DeleteTokenByUid(ctx context.Context, userID string) error
func (*TokenCacheRedis) GetTokensWithoutError ¶
func (*TokenCacheRedis) SetTokenExpire ¶ added in v1.8.3
Click to show internal directories.
Click to hide internal directories.