Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCache ¶
type AdminCache interface { SaveInviteToken( ctx context.Context, ttl time.Duration, token string, ) error ValidateInviteToken( ctx context.Context, token string, ) (isValid bool, err error) SaveAccessToken( ctx context.Context, token string, ttl time.Duration, ) error ValidateAccessToken( ctx context.Context, token string, ) (bool, error) }
type RedisCache ¶
type RedisCache struct { Admin AdminCache // contains filtered or unexported fields }
func New ¶
func New(conn *redis_connector.Connector, log *slog.Logger) *RedisCache
Click to show internal directories.
Click to hide internal directories.