Sha256: 01d1f6ce42c48b9d0f3ea35e89a688d72c36b4501cc58e993e262cc43cbc3950

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module SidekiqAlive
  module Redis
    class Base
      def set(...)
        raise(NotImplementedError)
      end

      def match(key)
        raise(NotImplementedError)
      end

      def delete(key)
        raise(NotImplementedError)
      end

      def ttl(...)
        redis.ttl(...)
      end

      private

      def redis
        Sidekiq.redis { |r| r }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq_alive-2.2.1 lib/sidekiq_alive/redis/base.rb
sidekiq_alive-2.2.0 lib/sidekiq_alive/redis/base.rb