-
Notifications
You must be signed in to change notification settings - Fork 0
Node redis #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node redis #2
Conversation
…ntation - Introduced a new Redis module with dynamic configuration capabilities. - Added Redis service for managing Redis client connections. - Updated README and package.json to reflect changes in dependencies and installation instructions. - Created .editorconfig for consistent coding styles across the project.
…nsuring proper async handling
… sentinel support
|
@BugBot run |
…luster mode checks
|
@BugBot run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: TypeScript Safety Violation in Redis Client
The cluster as unknown as RedisClusterType assertion in createRedisClient uses double casting through unknown, bypassing TypeScript's type safety. This can mask type mismatches between createCluster()'s return and RedisClusterType, potentially causing runtime errors. This approach is inconsistent with the direct casting used for RedisClientType.
packages/node-redis/lib/redis.providers.ts#L14-L15
nestjs-redis/packages/node-redis/lib/redis.providers.ts
Lines 14 to 15 in 4f75d1e
| await cluster.connect(); | |
| return cluster as unknown as RedisClusterType; |
Was this report helpful? Give feedback by reacting with 👍 or 👎
…isClient function
…pository structure
…tjs-ioredis package
liaoliaots#562