G
Guest
Hi,
I am using a hashtable as a cache. I am only allowed for the cache to take
up a certain amount of memory.
I think I can state how large I want the hashtable to be on creation.
What I need is someway to monitor the size of the hashtable so that as it
nears the maximum size I have set, I can delete some item or empty the table
altogether.
Can anyone tell me how I can implement this?
Also what happens if I try to add items to the table when it has reached its
maximum size?
Thanks In Advance
Macca
I am using a hashtable as a cache. I am only allowed for the cache to take
up a certain amount of memory.
I think I can state how large I want the hashtable to be on creation.
What I need is someway to monitor the size of the hashtable so that as it
nears the maximum size I have set, I can delete some item or empty the table
altogether.
Can anyone tell me how I can implement this?
Also what happens if I try to add items to the table when it has reached its
maximum size?
Thanks In Advance
Macca