Support caching to memcached

fix #6