init commit

This commit is contained in:
2024-03-19 01:05:51 +08:00
commit 199bbf2628
393 changed files with 34883 additions and 0 deletions

13
archive/go/cache/main.go vendored Normal file
View 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()
}