added inline caching with memcached