Class: SolidCache::ExpiryJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/solid_cache/expiry_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(count, shard: nil, max_age: nil, max_entries: nil, max_size: nil) ⇒ Object



5
6
7
8
9
# File 'app/jobs/solid_cache/expiry_job.rb', line 5

def perform(count, shard: nil, max_age: nil, max_entries: nil, max_size: nil)
  Record.with_shard(shard) do
    Entry.expire(count, max_age: max_age, max_entries: max_entries, max_size: max_size)
  end
end