From 41f1a3cfcb0befd3717ffb1365bd75f5383a5e5d Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Wed, 7 Jan 2015 08:12:17 +0700 Subject: [PATCH] gonna be one of those days... --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index 07e859e..55747b7 100644 --- a/cache.go +++ b/cache.go @@ -84,7 +84,7 @@ func (c *Cache) Replace(key string, value interface{}) bool { // Attempts to get the value from the cache and calles fetch on a miss. // If fetch returns an error, no value is cached and the error is returned back // to the caller. -func (c *Cache) Fetch(key string, duration time.Duration, fetch func() (interface{}, error)) (interface{}, error) { +func (c *Cache) Fetch(key string, duration time.Duration, fetch func() (interface{}, error)) (*Item, error) { item := c.Get(key) if item != nil { return item, nil