- Type: Cache
- Description: Uses Mongo NoSQL DBs as Caches.
This store is best for production environment due to its high speed, TTL indexes and mainly disk based storage. Built on top of Python Async Driver of MongoDB Motor.
DB level sharding is possible by following the Mongo's docs for sharding and pass the necessary kwargs to the settings.
An extra installation is required:
pip install pyot[mongodb]
strName of the database to be used.
str = '127.0.0.1'Host of the Mongo DB instance.
int = 27017Port of the Mongo DB instance.
Dict[str, int | float | timedelta] = None
int = 0
**kwargsAny extra kwargs provided will passed into
motor.motor_asyncio.AsyncIOMotorClient. e.g. authentication params.