Last Updated: February 25, 2016
·
652
· shai_wininger

Improve performance of multiple calls to Redis from Rails

Use the multi block to group actions together and throw them at Redis in one go.

$redis.multi do
$redis.sadd blabla, "blibli"
$redis.sadd blabla, "blueblue"
end