Exemplo n.º 1
0
def register_default_caches():
    """
    Register default caches.
    """
    register_project_cache(project_cache_name)
    binaries.set_cache(register_project_cache(project_binary_cache_name))
    register_global_cache(global_cache_name)
    register_global_cache(requests_cache_name)
Exemplo n.º 2
0
    def __init__(self, cache_name, keys):
        self.cache_name = cache_name
        self.keys = set(keys)
        self.type = set

        self.cached = defaultdict(self.type)
        self.previous = defaultdict(self.type)
        self.current = defaultdict(self.type)

        register_project_cache(self.cache_name)
Exemplo n.º 3
0
 def __init__(self):
     super().__init__()
     self.template_finder = None  # type: TemplateFinder
     register_project_cache(self._cache_key)
Exemplo n.º 4
0
 def initialize(self):
     register_project_cache("gitignore")
Exemplo n.º 5
0
    def initialize(self):
        self.file_walker = FileWalker(config.data.get("file.includes"),
                                      config.data.get("file.excludes"),
                                      config.data.get("file.suffixes"))

        register_project_cache("file")