Class: SolidCacheMongoid::ExpiryJob

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

Instance Method Summary collapse

Instance Method Details

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



5
6
7
# File 'app/jobs/solid_cache_mongoid/expiry_job.rb', line 5

def perform(count, max_age: nil, max_entries: nil, max_size: nil)
  Entry.expire(count, max_age: max_age, max_entries: max_entries, max_size: max_size)
end