Class Caching


  • public class Caching
    extends Object
    • Method Detail

      • writeImportsMapEntry

        public void writeImportsMapEntry​(String fileKey,
                                         Set<String> imports)
      • writeFileContentHash

        public void writeFileContentHash​(String fileKey,
                                         byte[] hash)
      • writeFilesList

        public void writeFilesList​(List<String> mainFiles)
      • writeTypeshedModules

        public void writeTypeshedModules​(Set<String> stubModules)
      • writeCacheVersion

        public void writeCacheVersion()
      • writeProjectLevelSymbolTableEntry

        public void writeProjectLevelSymbolTableEntry​(String fileKey,
                                                      Set<Descriptor> descriptors)
      • copyFromPrevious

        public void copyFromPrevious​(String fileKey)
      • readProjectLevelSymbolTableEntry

        @CheckForNull
        public Set<Descriptor> readProjectLevelSymbolTableEntry​(String fileKey)
      • readImportMapEntry

        @CheckForNull
        public Set<String> readImportMapEntry​(String fileKey)
      • readFileContentHash

        public byte[] readFileContentHash​(String fileKey)
      • readFilesList

        public Set<String> readFilesList()
      • readTypeshedModules

        public Set<String> readTypeshedModules()
      • isCacheVersionUpToDate

        public boolean isCacheVersionUpToDate()
      • isCacheEnabled

        public boolean isCacheEnabled()
      • importsMapCacheKey

        public static String importsMapCacheKey​(String key)
      • projectSymbolTableCacheKey

        public static String projectSymbolTableCacheKey​(String key)
      • fileContentHashCacheKey

        public static String fileContentHashCacheKey​(String key)