TTL is the only way. But keep in mind that L1 entries are stored in the core data container so if you have enabled eviction and have set maxEntries, this maxEntries number is L1 entries + core entries. So this will limit the size of your cache.
Thanks Manik for the immediate response. Your answer does clarify the issue I was trying to solve. Thanks a lot again.
One additional question: Since the L1 entries and the actual node specific entries use the same container, are they both handled the same way in case of eviction and expiry. Are they given the same status?
1 of 1 people found this helpful
Yes they are, except that L1 entries automatically get the L1 time to live applied as a lifespan.