Skip to content

Db

domain.tag.ports.db

Summary

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

Classes

TagDocument

Bases: Tag, BaseDocument

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

Functions

create_tag_repo

create_tag_repo()

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

Returns:

Name Type Description
Any

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