Skip to content

Instantly share code, notes, and snippets.

@collin
Forked from quinn/awesome_document_db.rb
Created October 5, 2008 22:04
Show Gist options
  • Save collin/14945 to your computer and use it in GitHub Desktop.
Save collin/14945 to your computer and use it in GitHub Desktop.
class Object
def collapse
memcache.store :key => object_id, :value => ENV["HOST_NAME"]
end
def persist
database.insert object_id, Marshall.dump(self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment