Documentation ¶
Index ¶
- type Pubsub
- type RedisPubsub
- func (rp *RedisPubsub) Close() error
- func (rp *RedisPubsub) Del(key string) *redis.IntCmd
- func (rp *RedisPubsub) Get(key string) *redis.StringCmd
- func (rp *RedisPubsub) Publish(channel string, payload string) error
- func (rp *RedisPubsub) Set(key string, value []byte) *redis.StatusCmd
- func (rp *RedisPubsub) Subscribe(channel string) *redis.PubSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pubsub ¶
type RedisPubsub ¶
type RedisPubsub struct {
// contains filtered or unexported fields
}
func GetRedisPubsub ¶
func GetRedisPubsub(connStr string) *RedisPubsub
func (*RedisPubsub) Close ¶
func (rp *RedisPubsub) Close() error
func (*RedisPubsub) Del ¶
func (rp *RedisPubsub) Del(key string) *redis.IntCmd
func (*RedisPubsub) Get ¶
func (rp *RedisPubsub) Get(key string) *redis.StringCmd
func (*RedisPubsub) Set ¶
func (rp *RedisPubsub) Set(key string, value []byte) *redis.StatusCmd
func (*RedisPubsub) Subscribe ¶
func (rp *RedisPubsub) Subscribe(channel string) *redis.PubSub
Click to show internal directories.
Click to hide internal directories.