Add support for memcache API.

Add support for older memcache API implementation.