I have a background job that removes expired elements from Ehcache by invoking the method ehcache.getQuiet(key)
. However, the getQuiet(key)
method internally deserializes the cached object, which leads to time and memory consumption.
Is there a way to remove expired elements without deserializing the object?