What would be the best way to limit the cache size used by Judy Array?

To implement LRU eviction policy can the elements be sorted by timestamp.

 

Thanks

Subba