34ba7a8e by astaxie

update file cache

1 parent b733b984
...@@ -143,7 +143,6 @@ func (this *FileCache) Put(key string, val interface{}, timeout int64) error { ...@@ -143,7 +143,6 @@ func (this *FileCache) Put(key string, val interface{}, timeout int64) error {
143 } else { 143 } else {
144 item.Expired = time.Now().Unix() + timeout 144 item.Expired = time.Now().Unix() + timeout
145 } 145 }
146 item.Expired = time.Now().Unix() + timeout
147 item.Lastaccess = time.Now().Unix() 146 item.Lastaccess = time.Now().Unix()
148 data, err := Gob_encode(item) 147 data, err := Gob_encode(item)
149 if err != nil { 148 if err != nil {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!