Rob Fairbrother

Rob Fairbrother

  • NA
  • 1
  • 2.6k

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

Feb 18 2012 10:48 PM
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)