1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 12:50:55 +00:00

fix new version for memcahe client

This commit is contained in:
astaxie 2013-08-06 16:04:35 +08:00
parent 6f2cd326bf
commit 64ef8ad62b

4
cache/memcache.go vendored
View File

@ -19,7 +19,7 @@ func (rc *MemcacheCache) Get(key string) interface{} {
if rc.c == nil { if rc.c == nil {
rc.c = rc.connectInit() rc.c = rc.connectInit()
} }
v, _, err := rc.c.Get(key) v, err := rc.c.Get(key)
if err != nil { if err != nil {
return nil return nil
} }
@ -63,7 +63,7 @@ func (rc *MemcacheCache) IsExist(key string) bool {
if rc.c == nil { if rc.c == nil {
rc.c = rc.connectInit() rc.c = rc.connectInit()
} }
v, _, err := rc.c.Get(key) v, err := rc.c.Get(key)
if err != nil { if err != nil {
return false return false
} }