Documentation ¶
Index ¶
- type Config
- type Pool
- func (p *Pool) Decr(key string) (int64, error)
- func (p *Pool) DecrBy(key string, decrement int64) (int64, error)
- func (p *Pool) Del(key string) (bool, error)
- func (p *Pool) Do(cmd string, args ...interface{}) (interface{}, error)
- func (p *Pool) Exists(key string) (bool, error)
- func (p *Pool) GetBytes(key string) ([]byte, error)
- func (p *Pool) GetInt(key string) (int, error)
- func (p *Pool) GetInt64(key string) (int64, error)
- func (p *Pool) GetString(key string) (string, error)
- func (p *Pool) Incr(key string) (int64, error)
- func (p *Pool) IncrBy(key string, increment int64) (int64, error)
- func (p *Pool) Read(key string, obj interface{}) error
- func (p *Pool) Set(key string, data interface{}, time ...int) error
- func (p *Pool) TTL(key string) (int, error)
- func (p *Pool) Write(key string, obj interface{}, time ...int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Network string Addr string Auth string Active int Idle int DialTimeout xtime.Duration ReadTimeout xtime.Duration WriteTimeout xtime.Duration IdleTimeout xtime.Duration Expire xtime.Duration }
Config .
type Pool ¶
Pool Redis缓存池结构
Click to show internal directories.
Click to hide internal directories.