Skip to content

Commit

Permalink
docs: Add a link to the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
viccon committed Apr 7, 2024
1 parent 81cc290 commit a5e9285
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ func main() {
2024/04/07 09:42:49 Fetching value for key: key
```

The entire example is available [here.](https://github.com/creativecreature/sturdyc/tree/main/examples/missing)

## Batch endpoints
The main challenge with caching batchable endpoints is reducing the number of
keys. To illustrate, let's say that we have 10 000 records, and an endpoint for
Expand Down Expand Up @@ -379,3 +381,5 @@ while getting cache hits for ids 1-10:
2024/04/07 11:09:58 map[1:value 2:value 3:value 4:value 5:value 520:value 6:value 7:value 8:value]
...
```

The entire example is available [here.](https://github.com/creativecreature/sturdyc/tree/main/examples/batch)

0 comments on commit a5e9285

Please sign in to comment.