in fxa/cache.py [0:0]
def get(self, key, now=None):
with self.lock:
if now is None:
now = time.time()
self._purge_expired_items(now)
value, expires_at = self.cache.get(key, (None, 0))
# There's a small chance that an expired item has
# not been removed yet, due to queue ordering weirdness.
if expires_at < now:
return None
return value