NullCacher

class coba.context.NullCacher

A cacher which does not cache any data.

Constructors

__init__() None

Instantiate a NullCacher.

Methods

get_set(key: _K, getter: Callable[[], _V] | _V) ContextManager[_V]

Get a key from the cache.

If the key is not in the cache put it first using getter.

Parameters:
  • key – The key to get from the cache.

  • getter – A method for getting the value if necessary.

rmv(key: _K)

Remove a key from the cache.

Parameters:

key – The key to remove from the cache.