I recently implemented gzipping of my content with php's ob_gzhandler function which keeps things really simple.
I'm now trying to add this content to my memcache, and was hoping there was a simple way to do that as well, but I haven't been able to find anything online about accomplishing this.
I've only used memcache in the past to store data which was held in a variable,but with the ob_gzhandler, I don't have a variable with the data in it. So I unfortunately don't even know where to start with this.
Thanks Pete
-----Edit for more information------------------------- As Cody commented below, apparently my question was/is vague. Sorry about that, I'm trying to give as much info as possible, but am really a bit lost in this process.
When I've used memcache before, I have checked if the data exists in memcache based on a hash of the url request. If there was a match, i grabbed the cached data. If not, then I'd make the page and store it in the cache.
Now I'm trying to do the same thing, but with gzipped data using the php ob_gzhandler.
But as Ciaran has stated, it might make more sense to just take the hit of storing the non-gzipped data.
At the same time, it would be nicer to store the gzipped version, as it is both smaller so I could store more in the cache, and aren't almost all browsers gzip compatible?