Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictPolicy ¶
type EvictPolicy string
const ( EvictNO EvictPolicy = "EvictNO" EvictLRU EvictPolicy = "EvictLRU" )
type InMemCache ¶
type InMemCache struct {
// contains filtered or unexported fields
}
func NewInMemCache ¶
func NewInMemCache(cleanupInterval time.Duration, evictPolicy EvictPolicy, opt ...InMemCacheOption) *InMemCache
func (*InMemCache) Delete ¶
func (c *InMemCache) Delete(key string)
func (*InMemCache) Stop ¶
func (c *InMemCache) Stop()
type InMemCacheOption ¶
type InMemCacheOption func(*InMemCache)
func WithEvictInterval ¶
func WithEvictInterval(interval time.Duration) InMemCacheOption
Click to show internal directories.
Click to hide internal directories.