Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Delete(key string) bool
- func (c *Cache) Ex() *cache.Cache
- func (c *Cache) GetBytes(key string) ([]byte, error)
- func (c *Cache) GetInterface(key string, values ...interface{}) (interface{}, error)
- func (c *Cache) GetString(key string) (string, error)
- func (c *Cache) SetBytes(key string, value []byte, expireSeconds ...int) error
- func (c *Cache) SetInterface(key string, value interface{}, expireSeconds ...int) error
- func (c *Cache) SetString(key string, value string, expireSeconds ...int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoKey error = decorateErrorString("The key is empty") ErrNotExistKey error = decorateErrorString("The key is not existed") ErrNoValue = decorateErrorString("The value is nil") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetInterface ¶
func (*Cache) SetInterface ¶
Click to show internal directories.
Click to hide internal directories.