Caches.__getitem__()
The named plain cache: opened on first use, then the same object every time.
Usage
Caches.__getitem__(name)A NullCache while it can’t be opened (see the class docs), or NullCache(invalidate=real) while it’s disabled. The type is TransactionalCacheLike, so caches[name].transact() checks; a cache registered with shards= is read with fanout(), whose transact takes a key.
Raises
KeyError-
No cache by that name is registered.
TypeError-
The cache was registered with
shards=(usefanout(name)), or its settings are invalid. ValueError- Its settings are invalid.