redis / hiredis-rb

Ruby wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
320 stars 90 forks source link

Adds Hiredis::ThreadSafeConnection #30

Closed seosgithub closed 10 years ago

seosgithub commented 10 years ago

Allows Hiredis to easily support environments where thread safety is a concern (e.g. multi-threaded server). Each thread gets it's own Hiredis::Connection and includes support for warming up connections on load.

@redis = Hiredis::ThreadSafeConnection.new
@redis.connect "127.0.0.1", 6379
seosgithub commented 10 years ago

My master's HEAD has changed...