Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns a value from the cache. When there is no valid cache item available, the function will return the passed parameter t.
func Init ¶
Init initializes the caching system. The cache implementation used is chosen by the supplied Mode.
func Invalidate ¶
Invalidate the cache item with the given key and type. The function returns whether an item has been invalidated or not.
Types ¶
type Dsn ¶
type Dsn string
Dsn is the information necessary to connect to a remote server like redis. It is necessary for some cache implementations.
Click to show internal directories.
Click to hide internal directories.