muesli / cache2go

Concurrency-safe Go caching library with expiration capabilities and access counters
Other
2.12k stars 514 forks source link

Does the value never expire when the lifespan is zero? #16

Closed scissorsfeet closed 6 years ago

scissorsfeet commented 6 years ago

i think maybe it's reasonable to use another field?

muesli commented 6 years ago

Yes, a lifespan of 0 means the value will be stored until you manually remove it.