Urgent.News

What's breaking now, across thousands of outlets.

Tech

Redora 0.3.1 — Redis for NestJS

There are already good Redis tools for NestJS. Most of them mainly help you connect NestJS to Redis and use the Redis client. That's useful, but as a project grows, you often need to build more things around Redis yourself: caching, TTL, cache invalidation, locks, rate limiting, sessions, monitoring, and more. That's why I built Redora. Redora adds a higher-level layer for using Redis in NestJS.…

Redis, a popular in-memory data store, is widely utilized in various applications, including NestJS, a popular Node.js framework for building efficient and scalable server-side applications. While there are existing Redis tools for NestJS, they primarily focus on establishing a connection between NestJS and Redis, enabling basic client functionality.

However, as projects grow in complexity, developers often require additional functionality around Redis, such as caching, TTL, cache invalidation, locks, rate limiting, sessions, monitoring, and more.

Recognizing this need, the developer behind Redora aimed to create a higher-level layer for using Redis in NestJS applications. Redora provides a set of features built specifically for NestJS with Redis integration. Current offerings include a Redis service, cache service, cache decorators (such as remember()), caching TTL and expiration policies, cache tags and eviction, distributed locks, as well as Redis diagnostics, logger, and observability.

In essence, Redora combines the power of Redis's primitives with a well-structured, NestJS-compatible architecture. As Redora continues to evolve, the developer intends to expand its capabilities to address more common Redis use-cases. These anticipated additions include session management, rate limiting for one-time passwords (OTP), login, and APIs, distributed locks, message queues, Redis support for AI applications, and enhanced monitoring and telemetry.

At this early stage, Redora is being developed openly, inviting feedback from the NestJS and Redis community to further refine and improve its offerings. Interested users can install Redora via npm with the command 'npm i redora' and explore more details at https://redora-sdk.com.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Next step to client-side storage

Next step to client-side storage In my past one blog, I wrote about how I improve the performance of the application using the local storage. And the problem local storage solves. But now I face another problem about the client storage. My project is simply about order management software for the rental clothing industry.

  • Order management software struggles with double booking in rental clothing industry.
  • IndexedDB chosen for robust storage of larger order details.
  • dbConnect function developed for database connection setup.

More from Sunday 23 August →