MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / refresh

Method refresh

api/organisations/chargebee/cache.py:16–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self._cache = caches[settings.CHARGEBEE_CACHE_LOCATION]
15
16 def refresh(self): # type: ignore[no-untyped-def]
17 plans = self.fetch_plans()
18 addons = self.fetch_addons()
19 self._cache.set(CHARGEBEE_CACHE_KEY, {"plans": plans, "addons": addons})
20
21 @property
22 def plans(self) -> Dict[str, ChargebeeObjMetadata]:

Callers 2

_get_itemsMethod · 0.95
update_chargebee_cacheFunction · 0.95

Calls 2

fetch_plansMethod · 0.95
fetch_addonsMethod · 0.95

Tested by

no test coverage detected