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.)
class_docstr_tok: ["Very","simple","cache","that","discards","the","oldest","item","when","the","cache","size","is","exceeded",".",":","param","maxsize",":","Maximum","size","of","the","cache",".","(","Do","n't","make","it","too","big",".",")"]
code: def __init__(self, maxsize=8):
      assert isinstance(maxsize, int) and maxsize > 0
  
      self._data = {}
      self._keys = deque()
      self.maxsize = maxsize
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/cache.py
imports: from __future__ import unicode_literals
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 to create a new SimpleCache object from inherited base classes: object with example: obj = SimpleCache(maxsize)