Class Moneta::Adapters::LRUHash
In: lib/moneta/adapters/lruhash.rb
Parent: Object

LRUHash backend

Based on Hashery::LRUHash but simpler and measures both memory usage and hash size.

@api public

Methods

clear   delete   key?   load   new   store  

Included Modules

Defaults IncrementSupport CreateSupport

Classes and Modules

Class Moneta::Adapters::LRUHash::Entry

Public Class methods

@param [Hash] options @option options [Integer] :max_size (1024000) Maximum byte size of all values @option options [Integer] :max_value (options[:max_size]) Maximum byte size of one value @option options [Integer] :max_count (10240) Maximum number of values

Public Instance methods

(see Proxy#key?)

[Validate]