package
0.0.0-20190422025920-beccf3fe4313
Repository: https://github.com/changwh/go-common.git
Documentation: pkg.go.dev
# README
business/blademaster/cache
项目简介
blademaster 的通用 cache 模块,一般直接用于缓存返回的 response
编译环境
- 请只用 Golang v1.8.x 以上版本编译执行
依赖包
- No other dependency
# Packages
No description provided by the author
# Functions
New will create a new Cache struct.
NewControl will create a new control cache struct.
NewDegrader will create a new degrade struct.
NewPage will create a new page cache struct.
# Structs
Cache is the abstract struct for any cache impl.
Control is used to work as client side cache orchestrator.
Degrader is the common degrader instance.
No description provided by the author
Page is used to cache common response.
No description provided by the author
# Interfaces
Policy is used to abstract different cache policy.
# Type aliases
Filter is used to check is cache required for every request.