Sha256: 23b7d6133712b5d27e079b22061152d1762242fb2f975d2444eca2cfd446029c
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
=begin Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end module Arachni module Support::Cache # Random Replacement cache implementation. # # Discards entries at random in order to make room for new ones. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class RandomReplacement < Base private def prune @cache.delete( @cache.keys.sample ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems