Sha256: 350aa989faf22c9cf694ef8b910e6484755bdd4e7068a985bdfa360ad5110d8d
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gandalf-0.0.4 | lib/redis_ext/pipeline.rb |