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



13
14
15
# File 'lib/async/redis/protocol/resp2.rb', line 13

def concurrency
	1
end

#reusable?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/async/redis/protocol/resp2.rb', line 21

def reusable?
	!@stream.closed?
end

#viable?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/async/redis/protocol/resp2.rb', line 17

def viable?
	@stream.connected?
end