pynenc.arg_cache.disabled_arg_cache

Module Contents

Classes

DisabledArgCache

A no-op implementation of argument caching that passes through to the serializer.

API

class pynenc.arg_cache.disabled_arg_cache.DisabledArgCache(app: pynenc.app.Pynenc)[source]

Bases: pynenc.arg_cache.base_arg_cache.BaseArgCache

A no-op implementation of argument caching that passes through to the serializer.

This is the default implementation used when argument caching is not needed.

Initialization

Initialize with app reference.

serialize(obj: Any, disable_cache: bool = False) str[source]

Direct passthrough to serializer.

deserialize(data: str) Any[source]

Direct passthrough to serializer.

abstract _store(key: str, value: str) None[source]

Not used in disabled cache.

abstract _retrieve(key: str) str[source]

Not used in disabled cache.

_purge() None[source]

No-op for disabled cache.