fix spelling in readme

This commit is contained in:
Jonathon Lacher 2020-07-16 15:15:43 -05:00 committed by GitHub
parent eab9dbaa7f
commit 4c88bf60e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ item, err := cache.Fetch("user:4", time.Minute * 10, func() (interface{}, error)
```
### Delete
`Delete` expects the key to delete. It's ok to call `Delete` on a non-existant key:
`Delete` expects the key to delete. It's ok to call `Delete` on a non-existent key:
```go
cache.Delete("user:4")
@ -117,7 +117,7 @@ You can get the number of keys evicted due to memory pressure by calling `GetDro
```go
dropped := cache.GetDropped()
```
The counter is reset on every call. If the cache's gc is running, `GetDropped` waits for it to finish; it's meant ot be called asynchronously for statistics /monitoring purposes.
The counter is reset on every call. If the cache's gc is running, `GetDropped` waits for it to finish; it's meant to be called asynchronously for statistics /monitoring purposes.
### Stop
The cache's background worker can be stopped by calling `Stop`. Once `Stop` is called