FWIW and depending on the size of data, I would use consider using sorted sets in redis http://redis.io/commands#sorted_set Where the member is the page url and the weight is time stamp, use ZRANGE to get back the top 1,000 entries in the set.
Would that work for you? Aaron On 9 Feb 2011, at 23:58, Utku Can Topçu wrote: > Hi All, > > I'm sure people here have tried to solve similar questions. > Say I'm tracking pages, I want to access the least recently used 1000 unique > pages (i.e. columnnames). How can I achieve this? > > Using a row with say, ttl=60 seconds would solve the problem of accessing the > least recently used unique pages in the last minute. > > Thanks for any comments and helps. > > Regards, > Utku