In Service
there is LocalCache
which is MemoryCacheClient
.
Do we manage the expired items? Do we need to call RemoveExpiredEntries()
or is this managed somewhere else in ServiceStack?
In Service
there is LocalCache
which is MemoryCacheClient
.
Do we manage the expired items? Do we need to call RemoveExpiredEntries()
or is this managed somewhere else in ServiceStack?
It only removes expired entries when it detects they’ve expired upon access to an expired item, so expired items at keys that are no longer accessed would remain in the cache.
But as it’s easier to clean up periodically within the client, I’ve added periodic cleanup in the client that will RemoveExpiredEntries()
every MemoryCacheClient.CleaningInterval
hits (default 1000).
This change is available from the latest v5.8.1 on MyGet.