Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxBytes = 1 << 29
DefaultMaxBytes 默认允许占用的最大内存
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Set(key string, value interface{}) Get(Key string) interface{} Del(key string) DelOldest() Len() int }
Cache 缓存接口
type TourCache ¶
type TourCache struct {
// contains filtered or unexported fields
}
func NewTourCache ¶
Click to show internal directories.
Click to hide internal directories.