mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 01:10:54 +00:00
fix #132
This commit is contained in:
parent
f2b359d8e8
commit
0833d4baf8
6
cache/memcache.go
vendored
6
cache/memcache.go
vendored
@ -24,7 +24,11 @@ func (rc *MemcacheCache) Get(key string) interface{} {
|
||||
return nil
|
||||
}
|
||||
var contain interface{}
|
||||
contain = v
|
||||
if len(v) > 0 {
|
||||
contain = string(v[0].Value)
|
||||
} else {
|
||||
contain = nil
|
||||
}
|
||||
return contain
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user