šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

redis-pool

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-pool

0.1.1
Rubygems
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 19 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts