Documentation ¶
Index ¶
- func NewMemDB() *memDB
- func WithRedisDBKeyContext(redisDB *RedisDB) func(context.Context) context.Context
- type RedisDB
- func (r *RedisDB) DelKey(key string) error
- func (r *RedisDB) Get(key string) ([]byte, error)
- func (r *RedisDB) GetKey(key string) ([]byte, error)
- func (r *RedisDB) IncrBy(key string, value []byte) ([]byte, error)
- func (r *RedisDB) Set(key string, value []byte) error
- func (r *RedisDB) SetKey(key string, value []byte) error
- func (r *RedisDB) SetKeyWithEX(key string, value []byte, exp int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisDB ¶ added in v1.2.5
type RedisDB struct {
// contains filtered or unexported fields
}
func MustRedisDBKeyFromContext ¶ added in v1.2.5
func NewRedisDB ¶
func RedisDBKeyFromContext ¶ added in v1.2.5
Click to show internal directories.
Click to hide internal directories.