Return a new cache with a given default expiration duration and cleanup 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 fro
(defaultExpiration, cleanupInterval time.Duration, items map[string]Item)
| 1157 | // map retrieved with c.Items(), and to register those same types before |
| 1158 | // decoding a blob containing an items map. |
| 1159 | func NewFrom(defaultExpiration, cleanupInterval time.Duration, items map[string]Item) *Cache { |
| 1160 | return newCacheWithJanitor(defaultExpiration, cleanupInterval, items) |
| 1161 | } |
searching dependent graphs…