| 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
@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