You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of our common Redis calls are spread all around our repo.
The only difference in calls is a key
This makes it very hard for those attempting to swap Redis providers for alternatives like Upstash to refactor all of the code and there are large opportunities for oversight
The way that the keys are designed currently forces users to use both a development and production instance of their Redis provider which can become costly and overall a hassle to deal with
Requirements
Create general Redis functions under apps/web/src/lib/utils/server/redis.ts to handle basic calls for sadd,hset,set,srem and any other generic Redis functions that appear two or more times.
For each of those functions created, append an environment variable such as HK_ENV with some sort of separator such as a "_" or "-" between the environment variable and the key itself.
The text was updated successfully, but these errors were encountered:
Description
Requirements
apps/web/src/lib/utils/server/redis.ts
to handle basic calls forsadd,hset,set,srem
and any other generic Redis functions that appear two or more times.HK_ENV
with some sort of separator such as a "_" or "-" between the environment variable and the key itself.The text was updated successfully, but these errors were encountered: