You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a recommended way of implementing Custom lifetime using TTL logic?
For example I would like an object to be created as PerContainerLifetime, the same instance shared among threads, but when the instance's Time To Live (TTL) expires, it's removed and another instance is created, registered and returned to new callers instead... similar to how .Net Core IMemoryCache works?
The text was updated successfully, but these errors were encountered:
Prior to posting I checked the docs... what I was hoping for was best practice for creating a thread safe but shareable lifetime (with TTL feature)... will close though as more of a question...
Is there a recommended way of implementing Custom lifetime using TTL logic?
For example I would like an object to be created as PerContainerLifetime, the same instance shared among threads, but when the instance's Time To Live (TTL) expires, it's removed and another instance is created, registered and returned to new callers instead... similar to how .Net Core IMemoryCache works?
The text was updated successfully, but these errors were encountered: