hagopj13 / hagopj13/node-express-boilerplate

Caching Support

Open
#93 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Hi,
Thank you for great boilerplate! How about adding support for caching in this to optimize the boilerplate more?
Nowadays it seems normal to provide caching out of the box.

Something like Redis with:

- Auth in Cache for storing SET of valid JWT token of a user and removing any blacklisted tokens from the SET.
- Storing user detail on Cache as well, and updating it value once user has been updated so that the JWT token with old user details can be avoided.

Thanks.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by tracing the authentication/JWT and user-update flows in the Node.js/Express boilerplate and identify where Redis would fit. Define the cache invalidation behavior for blacklisted tokens and updated user details, then verify those cases with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, mongodb, nodejs, redis
Domain
authentication, backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.