Skip to content

Db

domain.entity.ports.db

Summary

Mongo persistence for entities: document schema with an in-memory cache.

Classes

EntityDocument

Bases: Entity, BaseDocument

Mongo document form of :class:Entity read through an in-memory cache.

Functions

create_entity_repo

create_entity_repo()

Create a Mongo-backed entity repository with an in-memory cache.

Returns:

Name Type Description
Any

Mongo-backed entity repository using an in-memory cache backend.