Documentation ¶
Index ¶
- func HideKey(key string) string
- type RedisBroker
- type RedisClient
- func (c *RedisClient) BLPop(key string, timeout time.Duration) (interface{}, error)
- func (c *RedisClient) BRPop(key string, timeout time.Duration) (interface{}, error)
- func (c *RedisClient) Close()
- func (c *RedisClient) Del(key string) error
- func (c *RedisClient) Do(commandName string, args ...interface{}) (interface{}, error)
- func (c *RedisClient) Exists(key string) (bool, error)
- func (c *RedisClient) Expire(key string, t time.Duration) error
- func (c *RedisClient) Flush() error
- func (c *RedisClient) Get(key string) (interface{}, error)
- func (c *RedisClient) LPop(key string) (interface{}, error)
- func (c *RedisClient) LPush(key string, value interface{}) (interface{}, error)
- func (c *RedisClient) Ping() error
- func (c *RedisClient) RPush(key string, value interface{}) (interface{}, error)
- func (c *RedisClient) Receive() (interface{}, error)
- func (c *RedisClient) Send(commandName string, args ...interface{}) error
- func (c *RedisClient) Set(key string, value interface{}, exTime time.Duration) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisBroker ¶
type RedisBroker struct {
// contains filtered or unexported fields
}
func NewRedisBroker ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*RedisClient) BLPop ¶
func (c *RedisClient) BLPop(key string, timeout time.Duration) (interface{}, error)
func (*RedisClient) BRPop ¶
func (c *RedisClient) BRPop(key string, timeout time.Duration) (interface{}, error)
func (*RedisClient) Close ¶
func (c *RedisClient) Close()
func (*RedisClient) Del ¶
func (c *RedisClient) Del(key string) error
func (*RedisClient) Do ¶
func (c *RedisClient) Do(commandName string, args ...interface{}) (interface{}, error)
======================= lower api =======================
func (*RedisClient) Exists ¶
func (c *RedisClient) Exists(key string) (bool, error)
======================= high api =======================
func (*RedisClient) Flush ¶
func (c *RedisClient) Flush() error
func (*RedisClient) Get ¶
func (c *RedisClient) Get(key string) (interface{}, error)
func (*RedisClient) LPop ¶
func (c *RedisClient) LPop(key string) (interface{}, error)
func (*RedisClient) LPush ¶
func (c *RedisClient) LPush(key string, value interface{}) (interface{}, error)
func (*RedisClient) Ping ¶
func (c *RedisClient) Ping() error
func (*RedisClient) RPush ¶
func (c *RedisClient) RPush(key string, value interface{}) (interface{}, error)
func (*RedisClient) Receive ¶
func (c *RedisClient) Receive() (interface{}, error)
func (*RedisClient) Send ¶
func (c *RedisClient) Send(commandName string, args ...interface{}) error
Click to show internal directories.
Click to hide internal directories.