Class FlatFileCache


  • public class FlatFileCache
    extends Object
    Provides a cache for storing multiple small files in memory. Can be used to e.g cache gzip compressed PDB files for avoiding disk IO bottlenecks. Note this is just a wrapper for the singleton cache.
    Author:
    Andreas Prlic.
    • Method Detail

      • addToCache

        public static void addToCache​(String key,
                                      File fileToCache)
      • size

        public static int size()
      • clear

        public static void clear()