package main
import (
"fmt"
gofilecache "github.com/mimicode/go-filecache"
)
func main() {
cache := gofilecache.Default()
cache.Set("xiaoming", "xiaoming", 300)
val := cache.Get("xiaoming")
fmt.Println(string(val))
}
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple file cache implemented with Golang; Support for expiration, GC
License
mimicode/go-filecache
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple file cache implemented with Golang; Support for expiration, GC
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published