Open uklance opened 12 years ago
Add a hook to allow the user to specify an evictionPolicy.
A simple implementation could look for a "maxElements" config param and evict the oldest elements once the max has been reached.
When elements are removed, fire a PUSH_EVICTION event as a hook.
Add a hook to allow the user to specify an evictionPolicy.
A simple implementation could look for a "maxElements" config param and evict the oldest elements once the max has been reached.
When elements are removed, fire a PUSH_EVICTION event as a hook.