Is it possible to use ehcache to implement a multimap? I would like to store duplicate keys that store different values and expire after a given time. Ehcache can easily handle the expiration of elements, but I am not aware of a configuration to allow duplicate keys.
Ehcache does not support duplicate keys. You could always cache a collection of values as long as a single expiration for all values makes sense.