Class: Dis::Jobs::Evict

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/dis/jobs/evict.rb

Overview

Dis Evict Job

Handles cache eviction for cache layers. Evicts files in LRU order, but only after they have been replicated to a non-cache writeable layer. Retries up to 10 times on failure.

Examples:

Dis::Jobs::Evict.perform_later

Instance Method Summary collapse

Instance Method Details

#performvoid

This method returns an undefined value.



19
20
21
# File 'lib/dis/jobs/evict.rb', line 19

def perform
  Dis::Storage.evict_caches
end