Fixed memcached invoke function.