Supports getting compressed value using memcache extension.

Fixes #2674