Skip to content

Commit

Permalink
🇬🇧 update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
orca-zhang committed Jan 28, 2022
1 parent dccb77c commit 1e92335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ cache.Inspect(func(action int, key string, iface *interface{}, bytes []byte, sta

``` go
// only invalid items can be fetched
cache.Walk(func(key string, iface *interface{}, bytes []byte, expireAt int64) bool {
cache.Walk(func(key string, iface *interface{}, bytes []byte, expireAt int64) bool {
// `key` is key of item, `iface`/`bytes` is value of item, `expireAt` is the time that item expired

// - how to fetch right value -
// - `Put`: `*iface`
// - `PutBytes`: `bytes`
// - `PutInt64`: `ecache.ToInt64(bytes)`
return true // true stands for walk on
})
return true // true stands for walk on
})
```

## Cache Usage Statistics
Expand Down

0 comments on commit 1e92335

Please # to comment.