Options for generating a filter function based on lifetime
A function that takes an entry, key, and the collection and returns a boolean,
truewhen the entry should not be checked for sweepability.
A function that takes an entry, key, and the collection and returns a timestamp to compare against in order to determine the lifetime of the entry.
How long, in seconds, an entry should stay in the collection before it is considered sweepable.