fix: support sealing and unsealing secret in multiple process(more than one workers started by gunicorn)

This commit is contained in:
fxiang21
2024-04-15 16:47:29 +08:00
parent dc2f6ba957
commit 3b84687f89
3 changed files with 104 additions and 57 deletions

View File

@@ -5,9 +5,9 @@ from api.models.cmdb import InnerKV
from api.extensions import rd
class InnerKVManger(object):
def __init__(self):
self.cache = rd.r
pass
@classmethod