def cache_get(key):
 packed = cache.get(_hashed_key(key))
 if (packed is None):
  return None
 (value, refresh_time, refreshed) = packed
 if ((time() > refresh_time) and (not refreshed)):
  cache_set(key, value, settings.CACHE_SET_DELAY_SECONDS, True)
  return None
 return value

def cache_get ( key ) : packed = cache . get ( _hashed_key ( key ) ) if ( packed is None ) : return None ( value , refresh_time , refreshed ) = packed if ( ( time ( ) > refresh_time ) and ( not refreshed ) ) : cache_set ( key , value , settings . CACHE_SET_DELAY_SECONDS , True ) return None return value
wrapper for cache .