Class: Async::Redis::Protocol::RESP2::Connection

Inherits:
Protocol::Redis::Connection
  • Object
show all
Defined in:
lib/async/redis/protocol/resp2.rb

Instance Method Summary collapse

Instance Method Details

#concurrencyObject



30
31
32
# File 'lib/async/redis/protocol/resp2.rb', line 30

def concurrency
	1
end

#reusable?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/async/redis/protocol/resp2.rb', line 38

def reusable?
	!@stream.closed?
end

#viable?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/async/redis/protocol/resp2.rb', line 34

def viable?
	@stream.connected?
end