mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 12:30:19 +00:00
fix cache's bug expird is not changed by get method
This commit is contained in:
2
cache/memcache.go
vendored
2
cache/memcache.go
vendored
@ -28,7 +28,7 @@ func (rc *MemcacheCache) Get(key string) interface{} {
|
||||
return contain
|
||||
}
|
||||
|
||||
func (rc *MemcacheCache) Put(key string, val interface{}, timeout int) error {
|
||||
func (rc *MemcacheCache) Put(key string, val interface{}, timeout int64) error {
|
||||
if rc.c == nil {
|
||||
rc.c = rc.connectInit()
|
||||
}
|
||||
|
Reference in New Issue
Block a user