Skip to content

FastSchnell/KVDecorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KVDecorator

兜底缓存, 在分布式缓存挂了之后会自动切换为内存做缓存。

image

Installation

Install KVDecorator using the "go get" command:

go get github.com/FastSchnell/KVDecorator/kv

Usage

import "KVDecorator/kv"

func testKV() {
	KV.InitLocalKV()
	KV.Put("a", "b", time.Second)
	val, _ := KV.Get("a")
}

License

KVDecorator is available under the Apache License, Version 2.0.

About

兜底缓存

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages