def __init__(self, api, max_cache_age=360):
        dict.__init__(self)
        self._api = api
        self._max_cache_age = max_cache_age # seconds
        self._last_update = None
        self._lock = threading.Lock()