Cache string keyed objects with a timeout


I am battling the different ways of implementing a dictionary style object in C#, that will also have a timeout on it’s value items.

I do not want to have an independent thread that goes and enforces the timeout’s as that can cause all sorts of really strange things of this was ever to be serialised out to the File System (i.e HD back up)

Neat answers gratefully accepted Smile

Advertisements

One thought on “Cache string keyed objects with a timeout

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s