Documentation ¶
Index ¶
- Constants
- type Cache
- func (c *Cache) AtomicGet(key string) interface{}
- func (c *Cache) AtomicRemove(key string)
- func (c *Cache) AtomicSet(key string, val interface{})
- func (c *Cache) Get(key string) interface{}
- func (c *Cache) Invalidate()
- func (c *Cache) Remove(key string)
- func (c *Cache) Set(key string, val interface{}, expire ...time.Time)
Constants ¶
View Source
const ( HASH_ALG_MD5 int = iota HASH_ALG_SHA1 HASH_ALG_SHA256 HASH_ALG_SHA512 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AtomicRemove ¶
func (*Cache) Invalidate ¶
func (c *Cache) Invalidate()
Click to show internal directories.
Click to hide internal directories.