Versions in this module Expand all Collapse all v0 v0.2.1 Jan 16, 2015 Changes in this version + type Cache interface + GetNamespace func(id uint64) Namespace + Purge func(fin PurgeFin) + SetCapacity func(capacity int) + Zap func(closed bool) + func NewEmptyCache() Cache + func NewLRUCache(capacity int) Cache + type DelFin func(exist bool) + type Namespace interface + Delete func(key uint64, fin DelFin) bool + Get func(key uint64, setf SetFunc) (obj Object, ok bool) + Purge func(fin PurgeFin) + Zap func(closed bool) + type Object interface + Release func() + Value func() interface{} + type PurgeFin func(ns, key uint64, delfin DelFin) + type SetFin func() + type SetFunc func() (ok bool, value interface{}, charge int, fin SetFin)