class_docstr: A dictionary that maintains up to :maxsize: key-value-expiration tuples until their expiration_time
class_docstr_tok: ["A","dictionary","that","maintains","up","to",":","maxsize",":","key-value-expiration","tuples","until","their","expiration_time"]
docstr: Get a value corresponding to a key if that (key, value) pair was previously stored under this key.
docstr_tok: ["Get","a","value","corresponding","to","a","key","if","that","(","key",",","value",")","pair","was","previously","stored","under","this","key","."]
code: def get(
      self, key: KeyType
  ) -> Optional[ValueWithExpiration[ValueType]]:
      """Get a value corresponding to a key if that (key, value) pair was previously stored under this key."""
      self._remove_outdated()
      if key in self.data:
          return self.data[key]
      return None
  
imports: from __future__ import annotations
  import heapq
  import time
  from contextlib import contextmanager
  from dataclasses import dataclass
  from typing import Dict, Generic, Iterator, List, Optional, Tuple, TypeVar
label_desc: Use image node_id 4 for calling the TimedStorage obj's underlying member method code with example usage: obj.get(key) and returns: None, self