Documentation
¶
Index ¶
- func GetRedisClient(db int) *redis.Client
- type DbOptions
- type RedisDB
- func (r *RedisDB) Delete(key string) error
- func (r *RedisDB) Get(key string) ([]byte, error)
- func (r *RedisDB) GetListWithPrefix(id string, skPrefix string, limit int64) ([]string, error)
- func (r *RedisDB) GetString(key string) (string, error)
- func (r *RedisDB) Set(key string, value any, expiration time.Duration) error
- func (r *RedisDB) SetWithSortKey(pk string, sk string, value any, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisClient ¶ added in v1.3.1
func GetRedisClient(db int) *redis.Client
Types ¶
type RedisDB ¶
type RedisDB struct {
// contains filtered or unexported fields
}
func (*RedisDB) GetListWithPrefix ¶
Click to show internal directories.
Click to hide internal directories.