module Semian::RedisClient

def connect

def connect
  acquire_semian_resource(adapter: :redis_client, scope: :connection) do
    super
  end
end

def ensure_connected(retryable: true)

def ensure_connected(retryable: true)
  if block_given?
    super do |connection|
      acquire_semian_resource(adapter: :redis_client, scope: :query) do
        yield connection
      end
    end
  else
    super
  end
end

def resource_exceptions

def resource_exceptions
  EXCEPTIONS
end