From 888f396121eeec205bfdd702feee9f437e79d847 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 22 Dec 2014 02:04:11 -0500 Subject: [PATCH] Update NewFrom doc to be consistent with New --- cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cache.go b/cache.go index 08482b4..6c50c3a 100644 --- a/cache.go +++ b/cache.go @@ -997,10 +997,10 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache { } // Return a new cache with a given default expiration duration and cleanup -// interval. If the expiration duration is less than 1, 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. +// 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. // // 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