I'm building a caching system and I want it to be ready for distributed caching a la memcached. What I'm looking to do is to convert a traditional Hashtable/Dictionary of (string -> object) and to allow per-item expiration to be handled by the Cache itself, in the way that the System.Web.Caching.Cache can do.
I'm aware that memcache requires some changes to your thinking about caching, especially with respect to managing expiration, but I don't have much experience with it yet. Does anyone know of an article/site/etc with a cache wrapper around a distributed cache? I'd like to try to understand how it's possible to control cache size, prioritize items in the cache based on how much they're used, etc.
Thanks! Steve
PS - I haven't seen enough yet about Velocity to know whether the same hash-key model applies, if you know much about Velocity I'd appreciate any help as well!