diff options
Diffstat (limited to 'cache/namedmemcache/named_cache.go')
-rw-r--r-- | cache/namedmemcache/named_cache.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/namedmemcache/named_cache.go b/cache/namedmemcache/named_cache.go index d67bcc28a..4e912bf58 100644 --- a/cache/namedmemcache/named_cache.go +++ b/cache/namedmemcache/named_cache.go @@ -54,7 +54,7 @@ func (c *Cache) Clear() { // GetOrCreate tries to get the value with the given cache key, if not found // create will be called and cached. // This method is thread safe. It also guarantees that the create func for a given -// key is invoced only once for this cache. +// key is invoked only once for this cache. func (c *Cache) GetOrCreate(key string, create func() (interface{}, error)) (interface{}, error) { c.mu.RLock() entry, found := c.cache[key] |