Sha256: ae9dbdfe2a0c265157408d7ac61caf6575ab7b6155ebb98046c91e204fba9e05

Contents?: true

Size: 543 Bytes

Versions: 4

Compression:

Stored size: 543 Bytes

Contents

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

      def persist(key)
        raise <<-SCAN_ERROR
          PERSIST Command in Redis is only available on Servers >= 2.2.0
          The Redis Server you are connecting to is using a version that is not supported.

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

      def supports_persist?
        false
      end
    end # class PersistBefore22
  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/persist_before_2_2.rb
ffi-hiredis_vip-0.1.0.pre3 lib/ffi/hiredis_vip/persist_before_2_2.rb
ffi-hiredis_vip-0.1.0.pre2 lib/ffi/hiredis_vip/persist_before_2_2.rb
ffi-hiredis_vip-0.1.0.pre1 lib/ffi/hiredis_vip/persist_before_2_2.rb