Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
func NewCaptchaRedisStore ¶
func NewCaptchaRedisStore(cache Repo, ctx core.Context) *RedisStore
type Repo ¶
type Repo interface { Set(key, value string, ttl time.Duration, options ...Option) error Get(key string, options ...Option) (string, error) TTL(key string) (time.Duration, error) Expire(key string, ttl time.Duration) bool ExpireAt(key string, ttl time.Time) bool Del(key string, options ...Option) bool Exists(keys ...string) bool Incr(key string, options ...Option) int64 Close() error Version() string IncrByProject(key string, options ...Option) int64 GetTable(table string, options ...Option) (*model.Table, error) GetTableById(table int, options ...Option) (*model.Table, error) GetColumn(colId int, options ...Option) (*model.Column, error) GetDict(dict string, options ...Option) (*model.Dict, error) GerUserMenu(userId int64, options ...Option) (*[]model.Menu, error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.