def __init__(self, cache_dir = None, max_capacity = None, silent = True):
        '''max_capacity is currently used to set the maximum capacity of all object lists i.e. you cannot currently set different
           max capacities for different lists.'''
        if cache_dir:
            assert(os.path.exists(cache_dir))
        if max_capacity != None:
            max_capacity = int(max_capacity)
            assert(max_capacity >= 1)
        self.cache_dir = cache_dir

        # PDB files
        self.pdb_contents = CacheNodeDict()
        self.pdb_objects = CacheNodeDict()

        # SIFTS XML files
        self.sifts_xml_contents = CacheNodeDict()
        self.sifts_objects = CacheNodeDict()

        # PDBML files
        self.pdbml_contents = CacheNodeDict()
        self.pdbml_objects = CacheNodeDict()

        # FASTA files
        self.fasta_contents = CacheNodeDict()
        self.fasta_objects = CacheNodeDict()

        self.max_capacity = max_capacity
        self.silent = silent
def __init__ ( self , cache_dir = None , max_capacity = None , silent = True ) : if cache_dir : assert ( os . path . exists ( cache_dir ) ) if max_capacity != None : max_capacity = int ( max_capacity ) assert ( max_capacity >= 1 ) self . cache_dir = cache_dir self . pdb_contents = CacheNodeDict ( ) self . pdb_objects = CacheNodeDict ( ) self . sifts_xml_contents = CacheNodeDict ( ) self . sifts_objects = CacheNodeDict ( ) self . pdbml_contents = CacheNodeDict ( ) self . pdbml_objects = CacheNodeDict ( ) self . fasta_contents = CacheNodeDict ( ) self . fasta_objects = CacheNodeDict ( ) self . max_capacity = max_capacity self . silent = silent
max_capacity is currently used to set the maximum capacity of all object lists i.e. you cannot currently set different
           max capacities for different lists.