Categorygithub.com/peanutzhen/peanutcache
modulepackage
0.1.0
Repository: https://github.com/peanutzhen/peanutcache.git
Documentation: pkg.go.dev

# README

peanutcache

peanutcache是一个简单的分布式缓存,参考groupcache实现。

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
GetGroup 获取对应命名空间的缓存.
No description provided by the author
NewGroup 创建一个新的缓存空间.
NewServer 创建cache的svr 若addr为空 则使用defaultAddr.

# Structs

No description provided by the author
Group 提供命名管理缓存/填充缓存的能力.

# Interfaces

Fetcher 定义了从远端获取缓存的能力 所以每个Peer应实现这个接口.
Picker 定义了获取分布式节点的能力.
Retriever 要求对象实现从数据源获取数据的能力.

# Type aliases

No description provided by the author