fix cache's bug expird is not changed by get method

This commit is contained in:
astaxie
2013-07-04 13:02:11 +08:00
parent 9b392a0601
commit 174298b497
5 changed files with 23 additions and 25 deletions

2
cache/memcache.go vendored
View File

@@ -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()
}