# File lib/moneta/basic_file.rb, line 60 def store(key, value, options = {}) ensure_directory_created(::File.dirname(path(key))) ::File.open(path(key), "w") 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