Class: SolidCache::ExpiryJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- SolidCache::ExpiryJob
- Defined in:
- app/jobs/solid_cache/expiry_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(count, shard: nil, max_age:, max_entries:) ⇒ Object
3 4 5 6 7 |
# File 'app/jobs/solid_cache/expiry_job.rb', line 3 def perform(count, shard: nil, max_age:, max_entries:) Record.with_shard(shard) do Entry.expire(count, max_age: max_age, max_entries: max_entries) end end |