init commit
This commit is contained in:
13
archive/go/cache/main.go
vendored
Normal file
13
archive/go/cache/main.go
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
cache := NewCache()
|
||||
cache.SetMaxMemory("100MB")
|
||||
cache.Set("int", 1, 0)
|
||||
cache.Set("bool", false, 0)
|
||||
cache.Set("data", map[string]interface{}{"a": 1}, 0)
|
||||
cache.Get("int")
|
||||
cache.Del("int")
|
||||
cache.Flush()
|
||||
cache.Keys()
|
||||
}
|
Reference in New Issue
Block a user