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 DomainHash ¶ added in v0.3.1
DomainHash returns a hash for cache
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.