# File lib/chef/monkey_patches/moneta.rb, line 24 def store(key, value, options = {}) ensure_directory_created(::File.dirname(path(key))) ::File.open(path(key), "wb") do |file| if @expires data = {:value => value} if options[:expires_in] data[:expires_at] = Time.now + options[:expires_in] end contents = Marshal.dump(data) else contents = Marshal.dump(value) end file.puts(contents) end end