Sha256: 8a540a2c9f64f39612acd3b6b458899c1d01e035ee5aa1e3d1fac023c0d5a694
Contents?: true
Size: 311 Bytes
Versions: 4
Compression:
Stored size: 311 Bytes
Contents
class Redis class Pipeline < Client BUFFER_SIZE = 50_000 def initialize(redis) @redis = redis @commands = [] end def call_command(command) @commands << command end def execute return if @commands.empty? @redis.call_command(@commands) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
redis-1.0.7 | lib/redis/pipeline.rb |
redis-1.0.6 | lib/redis/pipeline.rb |
dsander-redis-1.0.6 | lib/redis/pipeline.rb |
redis-1.0.5 | lib/redis/pipeline.rb |