Feature #3917
open
Implement InMemoryStorageTimeout
Added by Alex Afanasyev almost 8 years ago.
Updated about 2 years ago.
Description
This flavor of InMemoryStorage should remove items based on the specified expiration time associated with the inserted item. The storage can also have persistent or LRU/LFU/Random replacement semantics.
- Tracker changed from Task to Feature
- Subject changed from Implement InMemoryStorateTimeout to Implement InMemoryStorageTimeout
- Status changed from New to In Progress
- Assignee set to Vedaant Rajoo
Need more clarification
Does the timeout need to a different option or should it be based on the FreshnessPeriod?
Because this would mean that whenever a packet is notFresh, it should be erased from the inMemoryStorage.
It should be simple to support both. Have an optional<time::milliseconds>
as a constructor parameter, with a default of nullopt
. If this parameter is specified, use that as timeout, otherwise use the packet's FreshnessPeriod as timeout.
- % Done changed from 0 to 20
- Status changed from In Progress to New
- Assignee deleted (
Vedaant Rajoo)
- % Done changed from 20 to 0
Also available in: Atom
PDF