Documentation ¶
Overview ¶
Package memory provides in-memory cache that implements cache.Cacher interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an implementation of cache.Cacher using map type with an expiration time for each item.
func NewCache ¶
NewCache returns a new Cache with given expiration. If set to 0, each item has no expiration time.
func (*Cache) DeleteMulti ¶
DeleteMulti deletes items for the given keys. The returned error is always nil.
Click to show internal directories.
Click to hide internal directories.