Sha256: c9dc0774713f1cd212b99a4681ff299d622121f23f396fdf21a0f140667238ba
Contents?: true
Size: 328 Bytes
Versions: 9
Compression:
Stored size: 328 Bytes
Contents
require "redis" class Redis class Pipeline < Redis BUFFER_SIZE = 50_000 def initialize(redis) @redis = redis @commands = [] end def call_command(command) @commands << command end def execute @redis.call_command(@commands) @commands.clear end end end
Version data entries
9 entries across 9 versions & 6 rubygems