Datastore

class
Superclass
Object
Included Modules
Enumerable
Thingfish::Normalization
Extended With
Pluggability
Strelka::AbstractClass

The base class for storage mechanisms used by Thingfish to store its data blobs.

Public Instance Methods

anchor
inspect()

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
anchor
transaction() { || ... }

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