docs: complete readme example

This commit is contained in:
Reinaldy Rafli 2021-11-16 11:57:27 +07:00
parent 9d74097a50
commit 72dc4921df
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,12 @@ func main() {
err = cache.Append("users:list", []byte("\nMarcel")) err = cache.Append("users:list", []byte("\nMarcel"))
if err != nil { if err != nil {
log.Fatal(err)
} }
err = cache.Delete("users:list")
if err != nil {
log.Fatal(err)
}
} }
```