class documentation

Model representing a key in the store.

Static Method get_expiration Gets the expiration date for a key with the given TTL.
Method to_mongo_dict Serializes the document to a MongoDB dictionary.
Class Variable created_at Undocumented
Class Variable dataset_id Undocumented
Class Variable expires_at Undocumented
Class Variable key Undocumented
Class Variable store_name Undocumented
Class Variable updated_at Undocumented
Class Variable value Undocumented
Class Variable _id Undocumented
@staticmethod
def get_expiration(ttl: int | None) -> datetime | None: (source)

Gets the expiration date for a key with the given TTL.

def to_mongo_dict(self, exclude_id: bool = True) -> dict[str, Any]: (source)

Serializes the document to a MongoDB dictionary.

Undocumented

dataset_id: ObjectId | None = (source)

Undocumented

Undocumented

store_name: str = (source)

Undocumented

Undocumented

Undocumented