Documentation ¶
Index ¶
- Variables
- type EventHandler
- type Rediser
- func (c *Rediser) Del(key string) error
- func (c *Rediser) Expire(key string, ttl int) error
- func (c *Rediser) Get(key string) (string, error)
- func (c *Rediser) HDel(key, filed string) error
- func (c *Rediser) HGet(key, filed interface{}) (string, error)
- func (c *Rediser) HGetAll(key interface{}) ([]string, error)
- func (c *Rediser) HGetInt(key, filed string) (int, error)
- func (c *Rediser) HSet(key, filed, value interface{}) error
- func (c *Rediser) Set(key string, value interface{}, ttl int) error
- func (c *Rediser) Subscription(channel string, handler EventHandler) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound mean can not find the key ErrNotFound = fmt.Errorf("the key not found") )
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
EventHandler progress message
type Rediser ¶
type Rediser struct {
// contains filtered or unexported fields
}
Rediser use redis
func NewSubCache ¶
NewSubCache create an cache support receive message
func (*Rediser) Subscription ¶
func (c *Rediser) Subscription(channel string, handler EventHandler) error
Subscription redis event
Click to show internal directories.
Click to hide internal directories.