This commit replaces the use of the cacheClient module with the getRedis module, which provides a direct Redis client. This change was made to improve the maintainability and flexibility of the caching functionality in the application.
The key changes are:
Replace cacheClient with getRedis() calls in various files, including ConnectedListUtils.ts, deleteMessage.ts, CooldownService.ts, storeMessageData.ts, and cacheUtils.ts.
Remove the traverseCursor function from cacheUtils.ts, as it is no longer needed with the new Redis client.
Update the import paths to use the new #utils directory structure.
These changes will help to centralize the Redis client usage and make it easier to maintain and update the caching functionality in the future.
This commit replaces the use of the
cacheClient
module with thegetRedis
module, which provides a direct Redis client. This change was made to improve the maintainability and flexibility of the caching functionality in the application.The key changes are:
cacheClient
withgetRedis()
calls in various files, includingConnectedListUtils.ts
,deleteMessage.ts
,CooldownService.ts
,storeMessageData.ts
, andcacheUtils.ts
.traverseCursor
function fromcacheUtils.ts
, as it is no longer needed with the new Redis client.#utils
directory structure.These changes will help to centralize the Redis client usage and make it easier to maintain and update the caching functionality in the future.