MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / _makeCacheKey

Method _makeCacheKey

graphs/data/base/graph.py:157–168  ·  view source on GitHub ↗
(self, src, tgt)

Source from the content-addressed store, hash-verified

155 self._clearInternalCache(reason, extraData)
156
157 def _makeCacheKey(self, src, tgt):
158 if tgt is not None and tgt.isFit:
159 tgtType = 'fit'
160 tgtItemID = tgt.item.ID
161 elif tgt is not None and tgt.isProfile:
162 tgtType = 'profile'
163 tgtItemID = tgt.item.ID
164 else:
165 tgtType = None
166 tgtItemID = None
167 cacheKey = (src.item.ID, tgtType, tgtItemID)
168 return cacheKey
169
170 def _clearInternalCache(self, reason, extraData):
171 return

Callers 2

getPlotPointsMethod · 0.95
getPointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected