Adding memcache support