pandaspgs.client

clear_cache

clear_cache(field: str = 'All') -> None

Clear some or all of the cache.

Parameters:
  • field (str, default: 'All' ) –

    It can be one of the following: 'All', 'Score', 'Publication', 'Trait', 'Trait_category', 'Performance', 'Cohort', 'Sample_set', 'Release', 'Ancestry_category'

Returns:
  • None

    None

from pandaspgs.get_publication import get_publications
from pandaspgs.client import clear_cache

# Clear all caches.
clear_cache('All')
pub = get_publications()
# Clear the cache used by get_publications()
clear_cache('Publication')
pub = get_publications()