Sha256: ed7fabdc339e3701b2682172324511e6e75c99eb8e25d3cc66c6eb769d44ae20
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 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:) redis.call("SET", key, time, ex: ex) end def get(key) redis.call("GET", key) end def match(key) redis.scan("MATCH", key).map { |key| key } end def delete(key) redis.call("DEL", key) 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/redis_client_gem.rb |
sidekiq_alive-2.2.0 | lib/sidekiq_alive/redis/redis_client_gem.rb |