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
Written by Shai Wininger
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#