Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GetOp cache item operation. GetOp = OpType(iota) // SetOp cache item operation. SetOp // DeleteOp cache item operation. DeleteOp )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an implementation of httpcache.Cache with persistent storage.
func NewWithDiskv ¶
NewWithDiskv returns a new Cache using the provided Diskv as underlying storage.
func (*Cache) LoadKeysFromDisk ¶
LoadKeysFromDisk - loads cache keys to memory to keep limited cache
type CacheOp ¶
type CacheOp struct {
// contains filtered or unexported fields
}
CacheOp - operations on cache with key and cache file name.
func (*CacheOp) OperationID ¶
OperationID returns type of cache operation.
Click to show internal directories.
Click to hide internal directories.