Update NewFrom doc to be consistent with New

master
Patrick Mylund Nielsen 10 years ago
parent 32dd451b6d
commit 888f396121

@ -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

Loading…
Cancel
Save