Open returns a reader for the cached data and counts a cache hit. Caller must close the reader.
(key string)
| 284 | dc.recencyNow = option.recencyNow |
| 285 | } |
| 286 | if option.recencyInterval > 0 { |
| 287 | dc.recencyInterval = option.recencyInterval |
| 288 | } |
| 289 | } |
| 290 | if dc.maxEntries > dc.hardMaxEntries { |
| 291 | dc.maxEntries = dc.hardMaxEntries |
| 292 | } |
| 293 | |
| 294 | startupContext := option.startupContext |
| 295 | if startupContext == nil { |
| 296 | startupContext = context.Background() |