Skip to content

Commit

Permalink
Replace Entry with explicit ActiveSupport::Cache::Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan TRON and Joseph HALTER authored and SFEley committed Aug 30, 2010
1 parent e096852 commit 3193b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_support/cache/mongo_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def write_entry(key, entry, options=nil)
end
def read_entry(key, options=nil)
doc = collection.find_one('key' => key, 'expires' => {'$gt' => Time.now})
Entry.new(doc['value']) if doc
ActiveSupport::Cache::Entry.new(doc['value']) if doc
end
def delete_entry(key, options=nil)
collection.remove({'key' => key})
Expand Down

0 comments on commit 3193b3e

Please sign in to comment.