Service class to wrap expiration of of cached value
24 25 26
# File 'lib/stockpile/cached_value_expirer.rb', line 24 def expire_cached(db: :default, key:) Stockpile.redis(db: db) { |r| r.expire(key, 0) } end