Changed limit to take memcached return value into consideration