Cache.peekitem()
The newest entry (or with last=False, the oldest) of any key, without removing it, as
Usage
Cache.peekitem(
last=True,
*,
expire_time=False,
tag=False,
retry=False,
)Returns
Any-
(key, value), widened withexpire_timeandtagas for pull().
Raises
KeyError- The cache has no live entry.