Documentation ¶
Overview ¶
Package esicache provides integrations for cache services which store content from backend resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MainRegistry = ®istry{ caches: make(map[string]Caches), }
MainRegistry global cache registry
Functions ¶
This section is empty.
Types ¶
type Cacher ¶
type Cacher interface { Set(key string, value []byte, expiration time.Duration) error Get(key string) ([]byte, error) }
Cacher used to cache the response of a micro service as found in the src attribute of an ESI tag. But the Cacher gets only involved if the additional attribute ttl has been set for each ESI tag. A Cacher must be thread safe.
Click to show internal directories.
Click to hide internal directories.