Update NewFrom doc to be consistent with New

This commit is contained in:
Patrick Mylund Nielsen 2014-12-22 02:04:11 -05:00
parent 32dd451b6d
commit 888f396121
1 changed files with 4 additions and 4 deletions

View File

@ -997,10 +997,10 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache {
} }
// Return a new cache with a given default expiration duration and cleanup // 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 // interval. If the expiration duration is less than one (or NoExpiration),
// never expire (by default), and must be deleted manually. If the cleanup // the items in the cache never expire (by default), and must be deleted
// interval is less than one, expired items are not deleted from the cache // manually. If the cleanup interval is less than one, expired items are not
// before calling DeleteExpired. // deleted from the cache before calling DeleteExpired.
// //
// NewFrom also accepts an items map which will serve as the underlying map // 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 // for the cache. This is useful for deserializing a cache (serialized using