def set_cache_max ( self , cache_name , maxsize , * * kwargs ) : cache = self . _get_cache ( cache_name ) cache . set_maxsize ( maxsize , * * kwargs )
python cache limit size
Sets the maxsize attribute of the named cache
def set_cache_max(self, cache_name, maxsize, **kwargs):
        """
        Sets the maxsize attribute of the named cache
        """
        cache = self._get_cache(cache_name)
        cache.set_maxsize(maxsize, **kwargs)