package
Version:
v1.8.1
Opens a new window with list of versions in this module.
Published: Mar 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
GET requestType = iota
SET
DELETE
EXPIRE
COPY
)
func MakeCache(ctimeExpiry, atimeExpiry time.Duration) *Cache
func (c *Cache) Copy() map[interface{}]interface{}
func (c *Cache) Delete(key interface{}) error
func (c *Cache) Get(key interface{}) (interface{}, error)
func (c *Cache) IsOld(v *Value) bool
func (c *Cache) Set(key interface{}, value interface{}) (interface{}, error)
if key exists in the cache, the new value is NOT set; instead an
error and the old value are returned
Source Files
¶
Click to show internal directories.
Click to hide internal directories.