Size limited queue based on LRU algorithm