2
Answers

Key value pair with FIFO or FILO to store recent history?

Ask a question
Hi all,

I have to store recent history of 20 pages (a key-value pair pageID and pageName) that my users visited in last few days.
As newer pages are visited, the older should get deleted from this recent history.

Hashtable as far as I know does not care about the sequence items were added to it. Queue does not have key-value pair.

I am at loss on what should I use here? Any help will be appreciated. Thanks.

Answers (2)