Sha256: 2a1f511e8bc7bb2535e44b4e3aac60f96cfd3017493f665887b43b206f0fb151

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

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

      def sscan(key, cursor, options = {})
        raise <<-SSCAN_ERROR
          SSCAN 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}
        SSCAN_ERROR
      end

      def supports_sscan?
        false
      end

    end # class SscanBefore28
  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/sscan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre3 lib/ffi/hiredis_vip/sscan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre2 lib/ffi/hiredis_vip/sscan_before_2_8.rb
ffi-hiredis_vip-0.1.0.pre1 lib/ffi/hiredis_vip/sscan_before_2_8.rb