Categorygithub.com/mimicode/go-filecache
repositorypackage
0.0.1
Repository: https://github.com/mimicode/go-filecache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

使用方法

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))
}