openpathsampling.netcdfplus.cache.Cache

class openpathsampling.netcdfplus.cache.Cache[source]

A cache like dict

__init__()

Methods

__init__()

get(item[, default])

get value by key if it exists, None else

get_silent(item[, default])

get value by key if it exists, None else

transfer(old_cache)

Transfer values between caches

Attributes

count

the number of strong references int : the number of weak references

size

the maximal number of strong references, -1 if infinite int : the maximal number of weak references, -1 if infinite