fix new version for memcahe client
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -19,7 +19,7 @@ func (rc *MemcacheCache) Get(key string) interface{} { | ... | @@ -19,7 +19,7 @@ func (rc *MemcacheCache) Get(key string) interface{} { |
| 19 | if rc.c == nil { | 19 | if rc.c == nil { |
| 20 | rc.c = rc.connectInit() | 20 | rc.c = rc.connectInit() |
| 21 | } | 21 | } |
| 22 | v, _, err := rc.c.Get(key) | 22 | v, err := rc.c.Get(key) |
| 23 | if err != nil { | 23 | if err != nil { |
| 24 | return nil | 24 | return nil |
| 25 | } | 25 | } |
| ... | @@ -63,7 +63,7 @@ func (rc *MemcacheCache) IsExist(key string) bool { | ... | @@ -63,7 +63,7 @@ func (rc *MemcacheCache) IsExist(key string) bool { |
| 63 | if rc.c == nil { | 63 | if rc.c == nil { |
| 64 | rc.c = rc.connectInit() | 64 | rc.c = rc.connectInit() |
| 65 | } | 65 | } |
| 66 | v, _, err := rc.c.Get(key) | 66 | v, err := rc.c.Get(key) |
| 67 | if err != nil { | 67 | if err != nil { |
| 68 | return false | 68 | return false |
| 69 | } | 69 | } | ... | ... |
-
Please register or sign in to post a comment