Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultCacheTime = time.Minute
)
consts
View Source
const (
DefaultMaxLen = 100000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Put(key Key, value Value)
PutWithTimeout(key Key, value Value, t time.Duration)
Get(key Key) (Value, bool)
Del(key Key) Value
Len() int
Close()
}
func NewCacheWithConfig ¶
NewCacheWithConfig will create a cache with the configs
Click to show internal directories.
Click to hide internal directories.