Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultL1Expiration = 10 //10sec
View Source
var DefaultL1Size = 100 * 1024 * 1024 //100MB
View Source
var DefaultL2Expiration int32 = 300 //60sec
View Source
var ErrNotFound = errors.New("key not found in cache")
View Source
var None = &NoneCache{}
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type LayeredCache ¶
type LayeredCache struct { Debug bool // contains filtered or unexported fields }
func New ¶
func New(config *CacheConfig) (result *LayeredCache)
func (*LayeredCache) Invalidate ¶
func (this *LayeredCache) Invalidate(key string) (err error)
func (*LayeredCache) Set ¶
func (this *LayeredCache) Set(key string, value []byte)
Click to show internal directories.
Click to hide internal directories.