The base class for storage mechanisms used by Thingfish to store its data blobs.
Return a representation of the object as a String suitable for debugging.
# File lib/thingfish/datastore.rb, line 39
def inspect
return "#<%p:%#016x>" % [
self.class,
self.object_id * 2
]
end
Provide transactional consistency to the provided block. Concrete datastores should override this if they can implement it. By default it's a no-op.
# File lib/thingfish/datastore.rb, line 49
def transaction
yield
end