I want to configure my cache as follows
a) Expire the cache after an interval of say 20 hrs
b) Within the 20 hrs if the number of nodes exceed 20 or a certain limit , then evict the nodes and persist in database.
Right now , The cache loader is configured and works fine.
Only thing is the eviction , I've configured FIFOAlgorithm, but it evicts from memory only , how do I configure this to remove from database as well?)
Read the section on "How Nodes Are Evicted" in the JBoss Cache user guide.