1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 07:20:55 +00:00
This commit is contained in:
astaxie 2013-08-09 22:19:05 +08:00
parent f2b359d8e8
commit 0833d4baf8

6
cache/memcache.go vendored
View File

@ -24,7 +24,11 @@ func (rc *MemcacheCache) Get(key string) interface{} {
return nil return nil
} }
var contain interface{} var contain interface{}
contain = v if len(v) > 0 {
contain = string(v[0].Value)
} else {
contain = nil
}
return contain return contain
} }