Sha256: 53cda2613ce0e6bc05f56dffeae1cc0bf3f23fa02d1469fead98a7876ea7be62
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true require_relative "base" module SidekiqAlive module Redis # Wrapper for `redis-client` gem used by `sidekiq` > 7 # https://github.com/redis-rb/redis-client class RedisClientGem < Base def set(key, time:, ex:) Sidekiq.redis { |redis| redis.call("SET", key, time, ex: ex) } end def get(key) Sidekiq.redis { |redis| redis.call("GET", key) } end def match(key) Sidekiq.redis { |redis| redis.scan("MATCH", key).map { |key| key } } end def delete(key) Sidekiq.redis { |redis| redis.call("DEL", key) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_alive-2.2.2 | lib/sidekiq_alive/redis/redis_client_gem.rb |