updated readme doc for getting cacheItem

This commit is contained in:
Rahul Raheja 2017-07-03 15:49:40 -04:00
parent c364809b54
commit 1f4b3cc365
1 changed files with 2 additions and 2 deletions

View File

@ -70,9 +70,9 @@ func main() {
// foo can then be passed around freely as a string // foo can then be passed around freely as a string
// Want to get the entry in the cache for an item not just the value? // Want to get the entry in the cache for an item not just the value?
var cahceItem Item var cacheItem Item
if x, found := c.GetCacheItem("foo"); found { if x, found := c.GetCacheItem("foo"); found {
foo = x.(string) cacheItem = x.(string)
} }
// .. // ..