Wrapper for memcache and memcached