MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / load_persistent_cache

Function load_persistent_cache

web/pgacloud/utils/azure_cache.py:62–72  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

60
61
62def load_persistent_cache(options):
63 # type:
64 # (TokenCachePersistenceOptions) -> msal_extensions.PersistedTokenCache
65 import msal_extensions
66 persistence = _get_persistence(
67 allow_unencrypted=options.allow_unencrypted_storage,
68 account_name="MSALCache",
69 cache_name=options.name,
70 cache_location=options.cache_location
71 )
72 return msal_extensions.PersistedTokenCache(persistence)
73
74
75def _get_persistence(

Callers 2

Calls 1

_get_persistenceFunction · 0.85

Tested by

no test coverage detected