Documentation ¶
Index ¶
- func CleanWindow(l time.Duration) func(*bigcache.Config)
- func LifeWindow(l time.Duration) func(*bigcache.Config)
- func MaxEntriesInWindow(m int) func(*bigcache.Config)
- func MaxEntrySize(m int) func(*bigcache.Config)
- func Shards(s int) func(*bigcache.Config)
- func Verbose(v bool) func(*bigcache.Config)
- type AllegroBigCache
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanWindow ¶
CleanWindow functional option
func LifeWindow ¶
LifeWindow functional option
func MaxEntriesInWindow ¶
MaxEntriesInWindow functional option
Types ¶
type AllegroBigCache ¶
AllegroBigCache is the struct holding the Cache layer object
func NewAllegroBigCache ¶
func NewAllegroBigCache(opts ...func(*bigcache.Config)) (*AllegroBigCache, error)
NewAllegroBigCache returns a new AllegroCache object
func (*AllegroBigCache) Close ¶
func (ac *AllegroBigCache) Close()
Close closes the cache once it is not necessary anymore
func (*AllegroBigCache) Del ¶
func (ac *AllegroBigCache) Del(key string) bool
Del deletes the entry from the cache layer
Click to show internal directories.
Click to hide internal directories.