Added memcache functionality