Documentation ¶ Index ¶ Variables func Delete(key string) func Get(key string) (obj interface{}, err error) func HasKey(key string) bool func Set(key string, obj interface{}, timeout time.Duration) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrTimeOut error = errors.New("The cache has been timeout.") ErrKeyNotFound error = errors.New("The key was not found.") ErrTypeAssertion error = errors.New("Type assertion error.") ) Functions ¶ func Delete ¶ func Delete(key string) func Get ¶ func Get(key string) (obj interface{}, err error) func HasKey ¶ func HasKey(key string) bool func Set ¶ func Set(key string, obj interface{}, timeout time.Duration) Types ¶ This section is empty. Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.