Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.04 KB

File metadata and controls

46 lines (36 loc) · 1.04 KB

groupcache-db-example

这是一个使用groupcache的例子

如何让这个例子跑起来

  • git clone git@github.com:colinrs/groupcache-db-example.git
  • cd groupcache-db-example
  • make run
    • 将API和 DBServer编译
    • 将API服务和DBServer服务在后台启动

example 架构如下

  • API服务接收来自用户的请求
    • 每一个API服务都有一个groupcache实例
  • groupcache 最终的数据源是 DBServer

img.png

API 接口

DBServer 接口