From 887753fa90b31abb5411d280406b0ec0ae066aba Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 22 Dec 2014 02:06:10 -0500 Subject: [PATCH] Refer to DeleteExpired as c.DeleteExpired() --- cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.go b/cache.go index 6c50c3a..c243579 100644 --- a/cache.go +++ b/cache.go @@ -990,7 +990,7 @@ func newCacheWithJanitor(de time.Duration, ci time.Duration, m map[string]*Item) // interval. If the expiration duration is less than one (or NoExpiration), // the items in the cache never expire (by default), and must be deleted // manually. If the cleanup interval is less than one, expired items are not -// deleted from the cache before calling DeleteExpired. +// deleted from the cache before calling c.DeleteExpired(). func New(defaultExpiration, cleanupInterval time.Duration) *Cache { items := make(map[string]*Item) return newCacheWithJanitor(defaultExpiration, cleanupInterval, items) @@ -1000,7 +1000,7 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache { // interval. If the expiration duration is less than one (or NoExpiration), // the items in the cache never expire (by default), and must be deleted // manually. If the cleanup interval is less than one, expired items are not -// deleted from the cache before calling DeleteExpired. +// deleted from the cache before calling c.DeleteExpired(). // // NewFrom also accepts an items map which will serve as the underlying map // for the cache. This is useful for deserializing a cache (serialized using