class Arachni::Support::Cache::LeastRecentlyPushed

Least Recently Pushed cache implementation.

Discards the least recently pushed entries, in order to make room for newer ones.

This is the cache with best performance across the board.

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Private Instance Methods

prune() click to toggle source
# File lib/arachni/support/cache/least_recently_pushed.rb, line 23
def prune
    @cache.delete( @cache.first.first )
end