Documentation ¶
Index ¶
- type Message
- type Redis
- func (r *Redis) Connect() error
- func (r *Redis) Del(key string) (int64, error)
- func (r *Redis) Exists(key string) (bool, error)
- func (r *Redis) Get(key string) (string, error)
- func (r *Redis) HDel(key, field string) (int64, error)
- func (r *Redis) HExists(key, field string) (bool, error)
- func (r *Redis) HGet(key, field string) (string, error)
- func (r *Redis) HLen(key string) (int64, error)
- func (r *Redis) HScan(key string, cursor uint64, match string, count int64) *redis.ScanCmd
- func (r *Redis) HSet(key, field, value string) (bool, error)
- func (r *Redis) HTruncate(key string) (int64, error)
- func (r *Redis) Ping() error
- func (r *Redis) Publish(channel string, message string) error
- func (r *Redis) Set(key, value string, expiration time.Duration) (bool, error)
- func (r *Redis) Subscribe(channel string, callback func(message Message) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
Redis driver
func GetDefaultRedisDriver ¶
func GetDefaultRedisDriver() *Redis
GetDefaultRedisDriver create a new instance
func NewRedisDriver ¶
NewRedisDriver create a new instance
Click to show internal directories.
Click to hide internal directories.