mirror of
https://github.com/gookit/cache.git
synced 2025-10-19 06:24:38 +08:00
some update...
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user