Documentation
¶
Index ¶
- type Cache
- func (m *Cache) Close() error
- func (m *Cache) Del(key string) error
- func (m *Cache) Get(key string) (string, error)
- func (m *Cache) GetBool(key string) (bool, error)
- func (m *Cache) GetInt(key string) (int64, error)
- func (m *Cache) GetJSON(key string, result interface{}) error
- func (m *Cache) Incr(key string) (int64, error)
- func (m *Cache) Prefix() string
- func (m *Cache) Set(key string, value string, expiration time.Duration) error
- func (m *Cache) SetBool(key string, value bool, expiration time.Duration) error
- func (m *Cache) SetInt(key string, value int64, expiration time.Duration) error
- func (m *Cache) SetJSON(key string, value interface{}, expiration time.Duration) error
- func (m *Cache) TTL(key string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is a mock implementation of the cache.Cache interface.
Click to show internal directories.
Click to hide internal directories.