64ef8ad6 by astaxie

fix new version for memcahe client

1 parent 6f2cd326
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!