Documentation ¶
Index ¶
- Constants
- func NewCacheManager() cache.CacheManager
- type Cache
- func (imc *Cache) Delete(key string)
- func (imc *Cache) Exists(key string) bool
- func (imc *Cache) Get(key string, value interface{}) error
- func (imc *Cache) Keys() []string
- func (imc *Cache) Store(key string, value interface{}) error
- func (imc *Cache) StoreWithTTL(key string, value interface{}, ttl time.Duration) error
- type CacheManager
Constants ¶
View Source
const ( DefaultCacheExpiration = 5 * time.Minute DefaultGCInterval = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func NewCacheManager ¶
func NewCacheManager() cache.CacheManager
Types ¶
type CacheManager ¶
type CacheManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.