Documentation ¶
Index ¶
- func NewCache() factory.Cache
- func WithMemcacheOption(op Options) factory.CacheOption
- type Cache
- func (c *Cache) ClearAll() error
- func (c *Cache) Close() error
- func (c *Cache) Decr(key string) error
- func (c *Cache) Delete(key string) error
- func (c *Cache) Get(key string) ([]byte, error)
- func (c *Cache) Incr(key string) error
- func (c *Cache) IsExist(key string) bool
- func (c *Cache) Put(key string, val interface{}, timeout time.Duration) error
- func (c *Cache) StartAndConfigure(ops ...factory.CacheOption) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMemcacheOption ¶
func WithMemcacheOption(op Options) factory.CacheOption
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) StartAndConfigure ¶
func (c *Cache) StartAndConfigure(ops ...factory.CacheOption) error
Click to show internal directories.
Click to hide internal directories.