Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memcache ¶
type Memcache struct {
// contains filtered or unexported fields
}
Memcache struct contains *memcache.Client
type Memory ¶
Memory struct contains *memcache.Client
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis redis cache
func (*Redis) SetRedisPool ¶
SetRedisPool set redis pools
type RedisOpts ¶
type RedisOpts struct { Host string `yml:"host" json:"host"` Password string `yum:"password" json:"password"` Database int `yum:"database" json:"database"` MaxIdle int `yum:"max_idle" json:"max_idle"` MaxActive int `yum:"max_active" json:"max_active"` IdleTimeout int `yum:"idle_timeout" json:"idle_timeout"` }
RedisOpts redis连接属性
Click to show internal directories.
Click to hide internal directories.