mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:30:55 +00:00
fix new version for memcahe client
This commit is contained in:
parent
6f2cd326bf
commit
64ef8ad62b
4
cache/memcache.go
vendored
4
cache/memcache.go
vendored
@ -19,7 +19,7 @@ func (rc *MemcacheCache) Get(key string) interface{} {
|
||||
if rc.c == nil {
|
||||
rc.c = rc.connectInit()
|
||||
}
|
||||
v, _, err := rc.c.Get(key)
|
||||
v, err := rc.c.Get(key)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
@ -63,7 +63,7 @@ func (rc *MemcacheCache) IsExist(key string) bool {
|
||||
if rc.c == nil {
|
||||
rc.c = rc.connectInit()
|
||||
}
|
||||
v, _, err := rc.c.Get(key)
|
||||
v, err := rc.c.Get(key)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user