Documentation
¶
Index ¶
- func NewItem(key string, data []byte, expire int32) *memcache.Item
- type Cacher
- func (c *Cacher) Decr(key string) error
- func (c *Cacher) Delete(key string) error
- func (c *Cacher) Flush() error
- func (c *Cacher) Get(key string) any
- func (c *Cacher) Incr(key string) error
- func (c *Cacher) IsExist(key string) bool
- func (c *Cacher) Ping() error
- func (c *Cacher) Put(key string, val any, expire int64) error
- func (c *Cacher) StartAndGC(opt cache.Options) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cacher ¶
type Cacher struct {
// contains filtered or unexported fields
}
Cacher represents a memcache cache adapter implementation.
Click to show internal directories.
Click to hide internal directories.