Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key string) interface{} Set(key string, val interface{}, timeout time.Duration) error IsExist(key string) bool Delete(key string) error }
Cache interface
type Memcache ¶
type Memcache struct {
// contains filtered or unexported fields
}
Memcache struct contains *memcache.Client
type Rediscache ¶
type Rediscache struct {
// contains filtered or unexported fields
}
Redis struct contains *Rediscache.Client
func NewRediscache ¶
func NewRediscache(host string, port uint) (*Rediscache, error)
NewRediscache create new Redis
func (*Rediscache) Delete ¶
func (res *Rediscache) Delete(key string) error
Delete delete value in Redis.
func (*Rediscache) IsExist ¶
func (res *Rediscache) IsExist(key string) bool
IsExist check value exists in Redis.
Click to show internal directories.
Click to hide internal directories.