Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cacheable ¶
type Cacheable struct { Expires lib.JSONTime `json:"_expires"` Contents interface{} `json":contents"` }
Cacheable defines metadata for objects which can be cached to files as JSON
type State ¶
type State int
State defines the return of the Store and Get calls
const ( // CacheFound means the key was found and valid CacheFound State = iota // CacheExpired means the key was found, but has expired. The value returned is not valid. CacheExpired // CacheNoEntry means the key was not found. CacheNoEntry // CacheNotAvailable means the cache system is not working as expected and has an internal error CacheNotAvailable )
Click to show internal directories.
Click to hide internal directories.