Add support for :max_entries and :eviction in caches.