Sha256: 80e7323532548e91e3371d5eb5b2a335c26720ec7db544c6381a986a17ab37cb

Contents?: true

Size: 236 Bytes

Versions: 10

Compression:

Stored size: 236 Bytes

Contents

# A cache that holds no connections. Any connection provided to this cache
# is simply closed.
SSHKit::Backend::ConnectionPool::NilCache = Struct.new(:closer) do
  def pop
    nil
  end

  def push(conn)
    closer.call(conn)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sshkit-1.12.0 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.5 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.4 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.3 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.2 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.1 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.11.0 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.10.0 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.9.0 lib/sshkit/backends/connection_pool/nil_cache.rb
sshkit-1.9.0.rc1 lib/sshkit/backends/connection_pool/nil_cache.rb