Skip to content

Database

Matthew Aylward edited this page May 29, 2022 · 3 revisions

The Database is a Redis-OM Database, it is an in memory database so it is lightning fast.

Redis-OM is a Redis Database with Object mapping implemented in Python. It allows us to store Pydantic Models in the Database. We can use Redis Insight to view & query the data in the Database.

We built upon this guide: Redis-Om to build a solution that would suit our needs.

We created a generic CRUD class that would do the standard Create, Read, Update & Delete. We did have to do some specialized functions to return some of the complex data models such as the Command Objects. The Database is also searchable via Session Token so User's information will only be shown to them.

The Backend also has Redis Insight incorporated so it is very easy to view the data in the Database as shown below

image

Clone this wiki locally