Saturday 28 September 2019

I created a ORM using Redis, suitable for microservices

Here is the library, please enjoy:https://www.npmjs.com/package/ts-redis-ormFeatures highlight:Simple class structure using typescript decorator. (Very similar to type-orm)Using native JS value types (Number, String, Boolean, Date, Array, Object).Atomic. All redis logics are written in Lua to protect data integrity.Schema validation and database reSync.Support multiple index keys and unique keys.Built-in entity timestamps (createdAt, updatedAt, deletedAt) .Soft delete.Aggregate functions (count, sum, min, max, average).You do not need to initialize a connection before using the entity. It's all done internally.Import / Export DB into file.Good Performance. You can create around 10, 000 entities in 1 second for 1 CPU process. Query is also extremely effective with proper indexing settings.

Submitted September 28, 2019 at 10:39AM by plk83

No comments:

Post a Comment