updated readme doc for getting cacheItem
This commit is contained in:
parent
c364809b54
commit
1f4b3cc365
|
@ -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)
|
||||||
}
|
}
|
||||||
// ..
|
// ..
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue