> On Thu, Jan 15, 2009 at 17:04:24 +0530, Ruturaj wrote: >> I wanted to know if - while using compression, would the keys be compressed >> as well ? > > No. Keep in mind that key is limited to > 250-characters-no-spaces-and-newlines. If you have too long keys, > rethink the way you construct them. But straightforward compression > will likely introduce spaces and newlines as part of binary data. >
In the hibernate-memcached project I added key strategies for hashing the keys for just that reason. The keys generated for hibernates query cache can get incredibly long, and in some cases blow the 250 character limit out of the water.
