Documentation ¶
Index ¶
Constants ¶
View Source
const Time int64 = 1 //3600 * 10
过期时间 10小时
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheManager ¶
type CacheManager struct {
// contains filtered or unexported fields
}
var Caches *CacheManager
动态缓存数据库
func NewCacheManager ¶
func NewCacheManager(size int) *CacheManager
func (*CacheManager) Delete ¶
func (this *CacheManager) Delete(key string) *Cache
func (*CacheManager) Get ¶
func (this *CacheManager) Get(key string) *Cache
func (*CacheManager) IsExist ¶
func (this *CacheManager) IsExist(key string) bool
func (*CacheManager) Set ¶
func (this *CacheManager) Set(key string, v interface{})
Click to show internal directories.
Click to hide internal directories.