redis-rb
Ruby · redis-rb 5.4.1 · Default negotiation
Listed tests passed
Tested connection settings
Redis standalone connection
Test target: 127.0.0.1:6379, username default, fixture password manual-test-only, default database. This password is only for the disposable local test container.
Verified operations
- authenticated PING
- SET
- Unicode GET
- missing GET
- binary round trip
- HGET
- pipeline
- MULTI/EXEC
- Lua EVAL
Coverage is limited to the exact API calls and assertions in the program below.
Executable test example
This program ran inside the isolated Docker image. It contains multiple client branches; this page uses the arguments below. Dependencies and compilation steps are in the test directory's Dockerfile.
ruby "/clients/ruby-client.rb"View the complete executed source
# Run: ruby ruby-client.rb. Fixture only.
require 'redis'
require 'json'
checks=[]
check=lambda{|name,actual,expected|raise "#{name}: #{actual.inspect}" unless actual==expected;checks<<name}
client=Redis.new(host:'127.0.0.1',port:6379,username:'default',password:'manual-test-only',timeout:5)
begin
check.call('authenticated PING',client.ping,'PONG')
check.call('SET',client.set('ruby:text','Hello 世界'),'OK')
check.call('Unicode GET',client.get('ruby:text'),'Hello 世界')
check.call('missing GET',client.get('ruby:missing'),nil)
client.set('ruby:binary',"\x00\xff\r\n".b)
check.call('binary round trip',client.get('ruby:binary').b,"\x00\xff\r\n".b)
client.hset('ruby:hash','field','value');check.call('HGET',client.hget('ruby:hash','field'),'value')
values=client.pipelined{|p|p.set('ruby:counter','1');p.incr('ruby:counter');p.get('ruby:counter')}
check.call('pipeline',values,['OK',2,'2'])
values=client.multi{|t|t.set('ruby:counter','3');t.incr('ruby:counter')}
check.call('MULTI/EXEC',values,['OK',4])
check.call('Lua EVAL',client.eval("return redis.call('GET',KEYS[1])",keys:['ruby:counter']),'4')
ensure
client.close
end
puts JSON.generate(library:'redis',version:Gem.loaded_specs['redis'].version.to_s,checks:checks,status:'passed')
Official client repository · Dependencies and reproduction
Test environment & reproducible evidence
Verified: 2026-09-21T11:15:27Z · Docker / Linux aarch64 · lavik 0.1.0-beta.1
Storage & connection: io_uring · temporary file, 2 workers, standalone, plaintext TCP, password authentication. This test does not measure NVMe performance.
Pinned source: 3955b98d43b312324aa8d52775df52cfb111c0d0
Binary SHA-256: 8306b37ddf05023f85166a6aa2192b7084757e8defd342b602e6470244aca887
Image: sha256:fd13690a1931b8abb31b1866baa2a08c7c38e6df93aa78883321d1d3c1cddd00