Documentation ¶
Index ¶
- type Cache
- type Config
- type Redis
- func (r *Redis) DeQueue(key string) (interface{}, error)
- func (r *Redis) Delete(key string) error
- func (r *Redis) EnQueue(key string, value interface{}) error
- func (r *Redis) Get(key string, data interface{}) error
- func (r *Redis) IsOK() error
- func (r *Redis) Set(key string, value interface{}, expire time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { IsOK() error Get(key string, data interface{}) error Delete(key string) error Set(key string, value interface{}, expire time.Duration) error EnQueue(key string, value interface{}) error DeQueue(key string) (interface{}, error) }
Cache
type Config ¶
type Config struct { Engine string `toml:"engine"` Host string `toml:"host"` Port string `toml:"port"` Pass string `toml:"pass"` DB int `toml:"db"` LifeTime int64 `toml:"life_time"` }
Redis Config
Click to show internal directories.
Click to hide internal directories.