Merge pull request #767 from harshavardhana/pr_out_remove_unnecessary_updateat_

remove unnecessary updateAt()
This commit is contained in:
Harshavardhana 2015-07-18 02:53:41 +00:00
commit e397fa48c4

View File

@ -76,7 +76,6 @@ func (r *Cache) Get(key string) interface{} {
if !ok {
return nil
}
r.updatedAt[key] = time.Now()
return value
}
@ -93,7 +92,6 @@ func (r *Cache) Set(key string, value interface{}) bool {
r.Lock()
defer r.Unlock()
r.items[key] = value
r.updatedAt[key] = time.Now()
return true
}