Sha256: d855c359f5b1e51e67e11a7fe9dc1fa72d74272ca453dae7f349b36fff73a8bf

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

module FFI
  module HiredisVip
    class ScanBefore28
      def initialize(client)
        @client = client
      end

      def scan(cursor, options = {})
        raise <<-SCAN_ERROR
          SCAN Command in Redis is only available on Servers >= 2.8.0
          The Redis Server you are connecting to is using a version that is not supported.

          == > INFO
            #{@client.info}
        SCAN_ERROR
      end

      def supports_scan?
        false
      end

    end # class ScanBefore28
  end # module HiredisVip
end # module FFI

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-hiredis_vip-0.1.0.pre4 lib/ffi/hiredis_vip/scan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre3 lib/ffi/hiredis_vip/scan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre2 lib/ffi/hiredis_vip/scan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre1 lib/ffi/hiredis_vip/scan_before_2_8.rb