muesli / cache2go

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

Adds ValueOnly() function that returns cached value but doesn't update it's keepAlive. #64

Open RatkoR opened 1 year ago

RatkoR commented 1 year ago

CacheTable.ValueOnly() works identically to CacheTable.Value() function, but doesn't update it's CacheItem.keepAlive value.

Can be used to retrieve cached value without touching it or changing any of it's properties.