I want to build a dictionary (key, value), but I want this dictionary to have a limited size, for example 1000 entries, so when I am rich with this limit size, I want to delete the first element and add a new element (FIFO).
I want to use a dictionary because I am always looking for keys in a dictionary (I need it to be fast)
How to do it?
source
share