Sha256: 30c46889de77272be136d98656dfcc8462adb9765074192432904de7b380d0df

Contents?: true

Size: 540 Bytes

Versions: 4

Compression:

Stored size: 540 Bytes

Contents

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

      def touch(*keys)
        raise <<-TOUCH_ERROR
          TOUCH Command in Redis is only available on Servers >= 3.2.1
          The Redis Server you are connecting to is using a version that is not supported.

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

      def supports_touch?
        false
      end

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