Implements cache LRU cleanup on various databases (e.g. MongoDB)