Module: ActiveJobStatus::Redis
- Defined in:
- lib/active_job_status/redis.rb
Instance Method Summary collapse
Instance Method Details
#sadd(key, elements) ⇒ Object
3 4 5 6 7 |
# File 'lib/active_job_status/redis.rb', line 3 def sadd(key, elements) instrument(:sadd, key, elements: elements) do @data.sadd key, elements end end |
#smembers(key) ⇒ Object
9 10 11 12 13 |
# File 'lib/active_job_status/redis.rb', line 9 def smembers(key) instrument(:smembers, key) do @data.smembers key end end |