Documentation
¶
Overview ¶
Package cache provides in-memory caching with a built-in captcha store.
The local cache is backed by gkit's local_cache and supports TTL-based expiration. The Base64CaptchaStore implements the captcha store interface for verification code storage.
Index ¶
- func Local() local_cache.Cache
- func Redis(driver ...string) *redis.Client
- func RedisDel(key string)
- func RedisHasOrQuery(key string, queryFunc func() (data string, exp time.Duration)) string
- func RedisHasOrQueryByte(key string, queryFunc func() (data []byte, exp time.Duration)) []byte
- func RedisHasOrQuerySerializerGob[T any](key string, resultReceiver *T, ...) error
- func RedisStrGet(key string) string
- func RedisStrSet(key, value string, exp time.Duration)
- type Base64CaptchaStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Local ¶
func Local() local_cache.Cache