KVDecorator

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: Apache-2.0

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL