Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrMiss represents a cache miss. ErrMiss = Error("cache miss") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket is a piece of cache.
type Cache ¶
type Cache struct { GCInterval time.Duration BucketNum int // contains filtered or unexported fields }
Cache is a store.
Click to show internal directories.
Click to hide internal directories.