/usr/lib/ruby/vendor_ruby/moneta/adapters/memory.rb is in ruby-moneta 0.7.20-2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | module Moneta
module Adapters
# Memory backend using a hash to store the entries
# @api public
class Memory
include Defaults
include HashAdapter
include IncrementSupport
include CreateSupport
# @param [Hash] options Options hash
# @option options [Hash] :backend Use existing backend instance
def initialize(options = {})
@backend = options[:backend] || {}
end
end
end
end
|