Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
pip._vendor.urllib3._collections.RecentlyUsedContainer Class Reference
Inheritance diagram for pip._vendor.urllib3._collections.RecentlyUsedContainer:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.urllib3._collections.RecentlyUsedContainer:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, maxsize=10, dispose_func=None)
 
 __getitem__ (self, key)
 
 __setitem__ (self, key, value)
 
 __delitem__ (self, key)
 
 __len__ (self)
 
 __iter__ (self)
 
 clear (self)
 
 keys (self)
 

Public Attributes

 dispose_func
 
 lock
 

Static Public Attributes

 ContainerCls = OrderedDict
 

Protected Attributes

 _maxsize
 
 _container
 

Detailed Description

Provides a thread-safe dict-like container which maintains up to
``maxsize`` keys while throwing away the least-recently-used keys beyond
``maxsize``.

:param maxsize:
    Maximum number of recent elements to retain.

:param dispose_func:
    Every time an item is evicted from the container,
    ``dispose_func(value)`` is called.  Callback which will get called

The documentation for this class was generated from the following file: