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