Sha256: 679f462dceff35ecc5f10be35a15a7087bc5d121323f7fca61ce3c9de7a30cf0

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module SidekiqAlive
  module Redis
    class Base
      def set(key, time:, ex:)
        raise("Implement me")
      end

      def match(key)
        raise("Implement me")
      end

      def delete(key)
        raise("Implement me")
      end

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

      def flushall
        redis.flushall
      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.1.9 lib/sidekiq_alive/redis/base.rb
sidekiq_alive-2.1.8 lib/sidekiq_alive/redis/base.rb