Documentation ¶
Index ¶
- Constants
- func Delete(key string) error
- func Do(args ...interface{}) (interface{}, error)
- func Exists(key string) (bool, error)
- func Get(key string) (string, error)
- func Init(addr, pass string, db int) error
- func Keys(pattern string) ([]string, error)
- func Publish(channel string, message interface{}) error
- func Rdb() *redis.Client
- func Scan(cursor uint64, match string, count int64) ([]string, uint64, error)
- func Set(key string, value interface{}, expiration time.Duration) error
- func Subscribe(channel string) *redis.PubSub
- func SubscribeChan(channel string) <-chan *redis.Message
Constants ¶
View Source
const (
KeyExisted = 1
)
Variables ¶
This section is empty.
Functions ¶
func SubscribeChan ¶
func SubscribeChan(channel string) <-chan *redis.Message
SubscribeChan subscribe a channel,return <- chan
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.