A Redis connection pool on top of redis-rb.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/redis
test
.gitignore
CHANGELOG.md
README.md
UNLICENSE
rakefile
redis-pool.gemspec

README.md

Redis::Pool

A Redis connection pool.

Usage

require "redis/pool"

$redis = Redis::Pool.new(size: 10)

Array.new(100) do
  Thread.new do
    $redis.get("foo")
  end
end.each(&:join)

$redis.info["connected_clients"]
# => 10