Skip to main content

BoundedSet

A simple set datastructure that removes the least recently accessed item when it reaches max_length.

Index

Methods

__contains__

  • __contains__(*, item): bool
  • Parameters

    • optionalkeyword-onlyitem: T

    Returns bool

__init__

  • __init__(*, max_length): None
  • Parameters

    • optionalkeyword-onlymax_length: int

    Returns None

add

  • add(*, item): None
  • Parameters

    • optionalkeyword-onlyitem: T

    Returns None

clear

  • clear(): None
  • Returns None

Page Options