0833d4ba by astaxie

fix #132

1 parent f2b359d8
...@@ -24,7 +24,11 @@ func (rc *MemcacheCache) Get(key string) interface{} { ...@@ -24,7 +24,11 @@ func (rc *MemcacheCache) Get(key string) interface{} {
24 return nil 24 return nil
25 } 25 }
26 var contain interface{} 26 var contain interface{}
27 contain = v 27 if len(v) > 0 {
28 contain = string(v[0].Value)
29 } else {
30 contain = nil
31 }
28 return contain 32 return contain
29 } 33 }
30 34
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!