rzel / concurrentlinkedhashmap

Automatically exported from code.google.com/p/concurrentlinkedhashmap
Apache License 2.0
0 stars 0 forks source link

Ability to cache collections and evict when sum(lengths) > capacity. #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Requested by Matt Passell (mpassell@grovehillsoftware.com) over private 
email.
------------

Current Behavior:
Each element in the map consumes one slot of capacity.

Desired Behavior:
Ability to insert collections, where the length determines how many slots 
it consumes.

Complexity / Amount of Change Required:
Allow pluggable evaluators to determine the size of the entry. One could 
imagine using memory usage as the capacity bound and using the Java's 
agent instrumentation to evaluate the entry's memory size.

Original issue reported on code.google.com by Ben.Manes@gmail.com on 28 Feb 2009 at 4:14

GoogleCodeExporter commented 9 years ago
Supported in the latest version.

Original comment by Ben.Manes@gmail.com on 3 Apr 2010 at 4:26