Documentation ¶
Index ¶
- type CacheItem
- func (c *CacheItem) Get(key string) ([]byte, error)
- func (c *CacheItem) GetAny(key string, out interface{}) error
- func (c *CacheItem) GetInt(key string) (int64, error)
- func (c *CacheItem) GetString(key string) (string, error)
- func (c *CacheItem) Set(key string, value string, expire int) error
- func (c *CacheItem) SetAny(key string, value interface{}, expire int) error
- func (c *CacheItem) SetInt(key string, value int64, expire int) error
- func (c *CacheItem) SetString(key string, value string, expire int) error
- type CacheUnit
- type LazyCacheItem
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheItem ¶
type CacheItem struct {
// contains filtered or unexported fields
}
type LazyCacheItem ¶
type LazyCacheItem struct {
// contains filtered or unexported fields
}
func GetLazyCache ¶
func GetLazyCache(cacheName string, cacheTime time.Duration) *LazyCacheItem
func (*LazyCacheItem) Del ¶
func (c *LazyCacheItem) Del(key string)
func (*LazyCacheItem) Get ¶
func (c *LazyCacheItem) Get(key string) (interface{}, bool)
func (*LazyCacheItem) Set ¶
func (c *LazyCacheItem) Set(key string, value interface{}, haveExpire bool)
Click to show internal directories.
Click to hide internal directories.