mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 09:12:39 +00:00
feat: added caching for secret dal\
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import crypto from "node:crypto";
|
||||
|
||||
export const getCacheKey = (data: unknown) =>
|
||||
crypto
|
||||
.createHash("md5")
|
||||
.update(JSON.stringify(data))
|
||||
.digest("base64")
|
||||
.replace(/\+/g, "-")
|
||||
.replace(/\//g, "_")
|
||||
.replace(/=/g, "");
|
||||
Reference in New Issue
Block a user