【文件属性】:
文件名称:cache:进入光缓存
文件大小:301KB
文件格式:ZIP
更新时间:2021-03-20 21:46:15
Go
快取
进入光缓存
介绍
安装
go get " github.com/iTrellis/cache "
特征
简单的鲁
可以设置唯一|包袋|每个键的DuplicateBag值
去做
主节点:管理缓存
一致地哈希到几个节点以安装密钥
快取
缓存是基于TableCache的k-vs表的管理器
// Cache Manager functions for executing k-v tables base on TableCache
type Cache interface {
// Returns a list of all tables at the node.
All () [] string
// Get TableCache
GetTableCache ( tab string ) ( TableCache , bool )
// Creates a new table.
【文件预览】:
cache-main
----go.mod(86B)
----go.sum(36KB)
----errors.go(1KB)
----examples()
--------main.go(2KB)
----data_values.go(1KB)
----LICENSE(34KB)
----cache.go(2KB)
----README.md(3KB)
----cache_table.go(2KB)
----.gitignore(269B)
----gem_table_lru.go(6KB)
----vendor()
--------github.com()
--------golang.org()
--------modules.txt(282B)
----gem_cache.go(3KB)