Class: Arachni::Support::Cache::LeastRecentlyUsed
- Inherits:
-
LeastRecentlyPushed
- Object
- Base
- LeastRecentlyPushed
- Arachni::Support::Cache::LeastRecentlyUsed
- 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.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#==, #[]=, #any?, #capped?, #clear, #delete, #dup, #empty?, #fetch_or_store, #hash, #include?, #initialize, #size, #store, #uncap, #uncapped?
Constructor Details
This class inherits a constructor from Arachni::Support::Cache::Base
Instance Method Details
#[](k) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/arachni/support/cache/least_recently_used.rb', line 21 def []( k ) return if !include? k renew( k ) super( k ) end |