Class: Arachni::Support::Cache::LeastRecentlyUsed

Inherits:
Base
  • Object
show all
Defined in:
lib/arachni/support/cache/least_recently_used.rb

Overview

Least Recently Used cache implementation.

Generally, the most desired mode under most circumstances. Discards the least recently used entries in order to make room for newer ones.

Author:

Instance Attribute Summary

Attributes inherited from Base

#max_size

Instance Method Summary collapse

Methods inherited from Base

#[]=, #any?, #capped?, #clear, #delete, #empty?, #fetch_or_store, #include?, #initialize, #size, #store, #uncap, #uncapped?

Constructor Details

This class inherits a constructor from Arachni::Support::Cache::Base

Instance Method Details

#[](k) ⇒ Object

See Also:

  • Cache::Base#[]


31
32
33
34
35
# File 'lib/arachni/support/cache/least_recently_used.rb', line 31

def []( k )
    super( k )
ensure
    renew( k )
end