MCPcopy
hub / github.com/jumpserver/jumpserver / data

Method data

apps/common/cache.py:95–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93
94 @property
95 def data(self):
96 if self._data is None:
97 data = self.load_data_from_db()
98 if not data:
99 with ComputeLock(self.key):
100 data = self.load_data_from_db()
101 if not data:
102 # 缓存中没有数据时,去数据库获取
103 self.init_all_values()
104 return self._data
105
106 def to_internal_value(self, data: dict):
107 internal_data = {}

Callers 15

jquery.form.min.jsFile · 0.80
getRelatedFunction · 0.80
launchFunction · 0.80
jquery.colorbox.jsFile · 0.80
jumpserver.jsFile · 0.80
dFunction · 0.80
iFunction · 0.80
mFunction · 0.80

Calls 3

load_data_from_dbMethod · 0.95
init_all_valuesMethod · 0.95
ComputeLockClass · 0.85

Tested by

no test coverage detected