Sha256: 0f484d0801566b4024765bfffe07b3a9005f5fde630d9bb6d4c63d0f2ebecb3c
Contents?: true
Size: 357 Bytes
Versions: 4
Compression:
Stored size: 357 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 return if @commands.empty? @redis.call_command(@commands) @commands.clear end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
vanity-1.0.0 | vendor/redis-0.1/lib/pipeline.rb |
vanity-0.4.0 | vendor/redis-0.1/lib/pipeline.rb |
vanity-0.3.1 | vendor/redis-0.1/lib/pipeline.rb |
redis-0.1 | lib/pipeline.rb |