Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Store map[string]*Item TTL time.Duration // contains filtered or unexported fields }
Cache is a simple key value store where the value is always a []byte. It is mostly used in Multikube to store http responses in-memory in order to cache requests and serve content to clients to decrease number of http calls made to upstream servers.
func (*Cache) Exists ¶
Exists returns true if an item with the given exists is non-nil. Otherwise returns false
Click to show internal directories.
Click to hide internal directories.