mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 18:10:55 +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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user