Class: Cuboid::Support::Cache::RandomReplacement

Inherits:
Base
  • Object
show all
Defined in:
lib/cuboid/support/cache/random_replacement.rb

Overview

Random Replacement cache implementation.

Discards entries at random in order to make room for new ones.

Author:

Instance Attribute Summary

Attributes inherited from Base

#max_size

Method Summary

Methods inherited from Base

#==, #[], #[]=, #any?, #capped?, #clear, #delete, #dup, #empty?, #fetch, #hash, #include?, #initialize, #size, #statistics, #store, #uncap, #uncapped?

Methods included from Mixins::Profiler

disable!, enable!, included, on?, #profile_proc, #profile_wrap_proc, results

Constructor Details

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