Documentation ¶
Index ¶
- func New(opts ...CacheOptions) cache.Cache
- type Cache
- func (m *Cache) Clear() error
- func (m *Cache) Decrement(key string, step int) error
- func (m *Cache) Delete(key string) error
- func (m *Cache) Get(key string) (any, error)
- func (m *Cache) GetMulti(keys []string) ([]any, error)
- func (m *Cache) Has(key string) (bool, error)
- func (m *Cache) Increment(key string, step int) error
- func (m *Cache) Name() string
- func (m *Cache) Set(key string, value any, ttl time.Duration) error
- type CacheOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheOptions ¶
type CacheOptions func(c *Cache)
func CacheWithMemcacheClient ¶
func CacheWithMemcacheClient(memcache *memcache.Client) CacheOptions
Click to show internal directories.
Click to hide internal directories.