some update...

This commit is contained in:
inhere
2018-09-10 01:25:29 +08:00
parent 638c11bec0
commit ff8c04fd5d
8 changed files with 63 additions and 53 deletions

View File

@@ -1,5 +1,17 @@
package memcached
import "fmt"
func Example() {
c := New("10.0.0.1:11211", "10.0.0.2:11211")
// set
c.Set("name", "cache value", 60)
// get
val := c.Get("name")
// del
c.Del("name")
// get: "cache value"
fmt.Print(val)
}