Table of Contents

Class: ICache ./src/peak/storage/interfaces.py

Cache - a restricted subset of the standard dictionary interface

Base Classes   
Interface
Methods   
__setitem__
clear
get
values
  __setitem__ 
__setitem__ ( key,  value )

Save value in the cache under key

Note that no particular lifetime for value remaining in the cache is required. For example, the NoCache type implements this method as a no-op.

  clear 
clear ()

Clear cache contents, if any

  get 
get ( key,  default=None )

Retrieve object denoted by key, or default if not found

Note that cache implementations do not have to guarantee that get() will return items placed in the cache, or indeed ever return anything other than default. For example, the NoCache type always returns default.

  values 
values ()

Return a sequence of the cache's contents


Table of Contents

This document was automatically generated on Mon May 6 01:11:03 2024 by HappyDoc version 2.1