mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 16:52:38 +00:00
feat(server): resolved a possible race condition on replication on frest first boot up and fixed making values optional on create rows for generate schema
This commit is contained in:
@@ -9,5 +9,10 @@ export const keyStoreFactory = (redisUrl: string) => {
|
||||
|
||||
const getItem = async (key: string) => redis.get(key);
|
||||
|
||||
return { setItem, getItem };
|
||||
const setItemWithExpiry = async (key: string, exp: number | string, value: string | number | Buffer) =>
|
||||
redis.setex(key, exp, value);
|
||||
|
||||
const deleteItem = async (key: string) => redis.del(key);
|
||||
|
||||
return { setItem, getItem, setItemWithExpiry, deleteItem };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user