I want to execute the following in a bash script:
num_total_keys=0x1FFFF
for ((i = 0; i <= $num_total_keys; i++))
do
redis-cli SET some_prefix:$i True > /dev/null
done
When I execute this, however, it takes a really long time. Is there a more efficient way to do this?