Cache

class paminco.utils.misc.Cache(counter: bool = True)[source]

Class that acts as a cache.

Parameters
counterbool, default=True

Whether to cound read and write accesses.

Attributes
validsdict

Whether dict element is valid and can be pulled from cache.

accessesdict, optional

Counter of reads.

writesdict, optional

Counter of writes.