Skip to content

mimicode/go-filecache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用方法

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

About

A simple file cache implemented with Golang; Support for expiration, GC

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages