module Stockpile::CachedValueExpirer
Stockpile::CachedValueExpirer
¶ ↑
Service class to wrap expiration of of cached value
Public Instance Methods
expire_cached(db: :default, key:)
click to toggle source
# 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