class_docstr: Very simple cache that discards the oldest item when the cache size is
  exceeded.
  
  :param maxsize: Maximum size of the cache. (Don't make it too big.)
code: def __init__(self, maxsize: int = 8) -> None:
      assert maxsize > 0
  
      self._data: dict[_T, _U] = {}
      self._keys: deque[_T] = deque()
      self.maxsize: int = maxsize
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/cache.py
imports: from __future__ import annotations
  from collections import deque
  from functools import wraps
  from typing import Any, Callable, Dict, Generic, Hashable, Tuple, TypeVar, cast
label_desc: Use image node_id 1 to create a new SimpleCache object from inherited base classes: Generic with example: obj = SimpleCache(maxsize)