Documentation ¶
Index ¶
- type RedisClient
- func (c *RedisClient) DeleteKey(key string) bool
- func (c *RedisClient) Expire(key string, ttl time.Duration) bool
- func (c *RedisClient) OpsMapDel(key string, k string) bool
- func (c *RedisClient) OpsMapGet(key string, k string) interface{}
- func (c *RedisClient) OpsMapPut(key string, k string, value interface{}) bool
- func (c *RedisClient) OpsValueGet(key string) interface{}
- func (c *RedisClient) OpsValueSet(key string, value interface{}, ttl time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*RedisClient) DeleteKey ¶
func (c *RedisClient) DeleteKey(key string) bool
func (*RedisClient) OpsMapGet ¶
func (c *RedisClient) OpsMapGet(key string, k string) interface{}
func (*RedisClient) OpsMapPut ¶
func (c *RedisClient) OpsMapPut(key string, k string, value interface{}) bool
func (*RedisClient) OpsValueGet ¶
func (c *RedisClient) OpsValueGet(key string) interface{}
func (*RedisClient) OpsValueSet ¶
func (c *RedisClient) OpsValueSet(key string, value interface{}, ttl time.Duration) bool
Click to show internal directories.
Click to hide internal directories.