This project is read-only.

how about a Contains method?

Jan 13, 2010 at 1:10 PM

I've spend a little bit time playing with source code, trying to implement a "contains method" that checks if an object is in cache without actually retrieve it.

I've created a ContainsOperation that is like GetOperation, but without object deserialization: looks like Contains performances are equals to Get performances, so It's almost equal to extract object and them check if it's null or not.

Maybe this isn't true for very big objects, but a Contains method looks more useful if memcached servers provides a way to do this without read the entire response... 

Any thoughts?