class documentation

class _Cache:

Known subclasses: numpy.distutils.ccompiler_opt.CCompilerOpt

View In Hierarchy

An abstract class handles caching functionality, provides two levels of caching, in-memory by share instances attributes among each other and by store attributes into files.

Note:
any attributes that start with _ or conf_ will be ignored.

Parameters

cache_path: str or None
The path of cache file, if None then cache in file will disabled.
*factors:
The caching factors that need to utilize next to conf_cache_factors.

Attributes

cache_private: set
Hold the attributes that need be skipped from "in-memory cache".
cache_infile: bool
Utilized during initializing this class, to determine if the cache was able to loaded from the specified cache path in 'cache_path'.
Static Method me A static method that can be treated as a decorator to dynamically cache certain methods.
Method __del__ Undocumented
Method __init__ Undocumented
Method cache​_flush Force update the cache.
Method cache​_hash Undocumented
Class Variable ​_cache​_ignore Undocumented
Instance Variable ​_cache​_hash Undocumented
Instance Variable ​_cache​_path Undocumented
Instance Variable cache​_infile Undocumented
Instance Variable cache​_me Undocumented
Instance Variable cache​_private Undocumented
@staticmethod
def me(cb):
A static method that can be treated as a decorator to dynamically cache certain methods.
def __del__(self):

Undocumented

def __init__(self, cache_path=None, *factors):

Undocumented

def cache_flush(self):
Force update the cache.
def cache_hash(self, *factors):

Undocumented

_cache_ignore =

Undocumented

_cache_hash =

Undocumented

_cache_path =

Undocumented

cache_infile: bool =

Undocumented

cache_me: dict =

Undocumented

cache_private: set =

Undocumented