Documentation ¶
Index ¶
- type ICacheCache
- type Item
- type Memory
- func (c *Memory) Add(key string, value *Item, d time.Duration) error
- func (c *Memory) Delete(key string)
- func (c *Memory) Flush()
- func (c *Memory) Get(key string) (*Item, bool)
- func (c *Memory) IsDisabled() bool
- func (c *Memory) IsEnabled() bool
- func (c *Memory) Replace(key string, value *Item, d time.Duration) error
- func (c *Memory) ReplaceIfExists(key string, value *Item, d time.Duration) error
- func (c *Memory) Shutdown()
- func (c *Memory) Start()
- type MemoryConfigInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICacheCache ¶
type ICacheCache interface { Get(key string) (*Item, bool) Replace(key string, value *Item, d time.Duration) error ReplaceIfExists(key string, value *Item, d time.Duration) error Delete(key string) Add(key string, value *Item, d time.Duration) error IsEnabled() bool IsDisabled() bool Flush() Start() Shutdown() }
func NewCacheMemory ¶
func NewCacheMemory(cacheConfig *MemoryConfigInput) ICacheCache
Click to show internal directories.
Click to hide internal directories.