I want to store in a queue, datastructure does not matter, only the elements that I have inserted within say last 5 minutes from current time. Anything older should get removed - so that any time I get the size of the queue it will give count of the objects inserted in last 5 minutes.
Basically all I have to know is how many times my app has made a http call to a sever in last 5 minutes before making the next call.
If anyone knows of some existing library that may have this implementation please share.