<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@ module Moneta
         :db =&gt; 'cache',
         :collection =&gt; 'cache'
       }.update(options)
-      conn = XGen::Mongo::Driver::Mongo.new(options[:host], options[:port])
+      conn = XGen::Mongo::Driver::Connection.new(options[:host], options[:port])
       @cache = conn.db(options[:db]).collection(options[:collection])
     end
 
@@ -42,7 +42,7 @@ module Moneta
 
     def store(key, value, options = {})
       exp = options[:expires_in] ? (Time.now + options[:expires_in]) : nil
-      @cache.repsert({ '_id' =&gt; key }, { '_id' =&gt; key, 'data' =&gt; value, 'expires' =&gt; exp })
+      @cache.update({ '_id' =&gt; key }, { '_id' =&gt; key, 'data' =&gt; value, 'expires' =&gt; exp })
     end
 
     def update_key(key, options = {})</diff>
      <filename>lib/moneta/mongodb.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abd3afc4ab56470b3333848bca1dd212785f76db</id>
    </parent>
  </parents>
  <author>
    <name>lakshan</name>
    <email>lakshan@web2media.net</email>
  </author>
  <url>http://github.com/wycats/moneta/commit/a7ce535d5ea01e398bd614641066828b0f263e5e</url>
  <id>a7ce535d5ea01e398bd614641066828b0f263e5e</id>
  <committed-date>2009-08-24T02:28:51-07:00</committed-date>
  <authored-date>2009-08-23T08:51:36-07:00</authored-date>
  <message>Update to MongoDB to change deprecated method names

Signed-off-by: Yehuda Katz &lt;wycats@gmail.com&gt;</message>
  <tree>fed3c5403d59c04719ee6acd1bb123ba81c762c1</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </committer>
</commit>
