Change cache list to deque