code: def memory_full():
      
      current_process = psutil.Process(os.getpid())
      return (current_process.memory_percent() >
              config.MAXIMUM_CACHE_MEMORY_PERCENTAGE)
docs: Check if the memory is too full for further caching.