摘要 |
In a method for storing and accessing objects in an electronic content store (e.g. for a Website), each object is assigned a version number, such that multiple instances of the same object with different version numbers may coexist. When accessing an object in the content store for reading or writing, a requested version number is specified. When reading an object, if an instance of that object with the requested version number exists in the content store, that instance of the object is returned, and otherwise the most recent older instance of that object is returned. When writing to an object, if an instance of that object with the requested version number exists in the content store, the write is performed to that instance of the object, and otherwise a copy is made of the most recent older instance of the object, the copy is assigned the requested version number, and the write is performed to the copy. This provides an efficient and convenient mechanism for managing versions of the content.
|