On this pageBoundedSet A simple set datastructure that removes the least recently accessed item when it reaches max_length.Index Methods__contains____init__addclearMethods __contains__ __contains__(*, item): boolParametersoptionalkeyword-onlyitem: TReturns bool__init__ __init__(*, max_length): NoneParametersoptionalkeyword-onlymax_length: intReturns Noneadd add(*, item): NoneParametersoptionalkeyword-onlyitem: TReturns Noneclear clear(): NoneReturns None
A simple set datastructure that removes the least recently accessed item when it reaches
max_length
.