Documentation ¶
Index ¶
- func CheckError(err error)
- func Init(conf *gjson.Result) error
- type Memcache
- func (m *Memcache) Add(key string, value []byte, expiration int32) bool
- func (m *Memcache) Conn() *memcache.Client
- func (m *Memcache) Decrement(key string, delta uint64) uint64
- func (m *Memcache) Delete(key string) error
- func (m *Memcache) Get(key string) []byte
- func (m *Memcache) GetMulti(keys []string) map[string][]byte
- func (m *Memcache) Increment(key string, delta uint64) uint64
- func (m *Memcache) Replace(key string, value []byte, expiration int32) error
- func (m *Memcache) Set(key string, value []byte, expiration int32) bool
- func (m *Memcache) Touch(key string, seconds int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
Types ¶
type Memcache ¶
type Memcache struct {
// contains filtered or unexported fields
}
func (*Memcache) Decrement ¶
按增量原子递减键的值 返回值是递减或出错后的新值 如果该值在memcached中不存在,则错误为ErrCacheMiss memcached中的值必须是十进制数,否则将返回错误
func (*Memcache) Increment ¶
按增量键原子递增 返回值是递增或出错后的新值 如果该值在memcached中不存在,则错误为ErrCacheMiss memcached中的值必须是十进制数,否则将返回错误
Click to show internal directories.
Click to hide internal directories.