Skip to main content

Cache.peek()

The item at side of a queue, without removing it, as diskcache’s peek.

Usage

Source

Cache.peek(
    prefix=None,
    default=(None, None),
    side="front",
    *,
    expire_time=False,
    tag=False,
    retry=False
)

Writes only what get would (D-055): expired items are passed over and left for expire(). Arguments and return values as for pull().