Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCacheNotFound error ErrCacheNotFound = errors.New("cache not found") // ErrCacheExpired error ErrCacheExpired = errors.New("cache expired") )
Functions ¶
func AcquireBuf ¶ added in v1.0.0
AcquireBuf returns a buf from pool
func AcquireHash ¶ added in v1.0.0
AcquireHash returns a hash from pool
Types ¶
type Cache ¶ added in v0.2.4
type Cache struct {
// contains filtered or unexported fields
}
Cache is cache.
func (*Cache) Add ¶ added in v0.2.4
Add adds a new element to the cache. If the element already exists it is overwritten.
Click to show internal directories.
Click to hide internal directories.