Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cacher ¶
type Cacher interface { // Gets a cache value and instead of returning it, puts it into "out". // If no cache is found, the CacheFunc is called and put into cache. // It returns the CacheFunc error, and caching error OutSetFn(key string, expires int, out interface{}, cFunc CacheFunc) (funcErr error, cacheErr error) // Gets a cache value. // If no cache is found, the CacheFunc is called and put into cache. // It returns the CacheFunc error, and caching error GetSetFn(key string, expires int, cFunc CacheFunc) (ret interface{}, funcErr error, cacheErr error) Out(key string, out interface{}) (cacheErr error) Get(key string) (ret interface{}, cacheErr error) Set(key string, value interface{}, expires int) (cacheErr error) // Delete a key from the cache. // Returns a caching error. Delete(key string) (cacheErr error) Open() error Close() error Setup(DataSource) error }
type DataSource ¶
Click to show internal directories.
Click to hide internal directories.