NullCache
NullCache is a cache backend that implements a standard caching interface but does not store any data. Reads always result in a cache miss, and writes are ignored. As a result, it provides a no-op cache layer that preserves API compatibility without affecting memory usage or performance characteristics.
In operation, get(key) returns None or a dedicated miss value; set(key, value, ttl) is a no-op; delete(key)
Common use cases include disabling caching in development or test environments, providing a deterministic baseline for
Design notes: NullCache is an example of the Null Object design pattern. It is usually stateless or
See also: Null Object Pattern; No-op cache; Dummy cache; Cache backends.