Skip to content

Commit

Permalink
更新架构图
Browse files Browse the repository at this point in the history
  • Loading branch information
xpzouying committed Feb 24, 2020
1 parent f7ec122 commit 343fd93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ Environments:
- multiple cache nodes for HA


TODO list:
![](./images/golang-groupcache.jpg)

- [x] write custom database for test
- [x] write cache server to provide API for caller outside
- [ ] write outside tester

**groupcache version**

Expand Down
2 changes: 2 additions & 0 deletions frontend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func cacheGetFunc(ctx context.Context, key string, dest groupcache.Sink) error {
if err != nil {
panic(err)
}

// :9000 is our slow database
resp, err := http.Post("http:https://localhost:9000/get", "application/json", bytes.NewReader(data))
if err != nil {
panic(err)
Expand Down
Binary file added images/golang-groupcache.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 343fd93

Please sign in to comment.