def user_cache_items(items_for_remote_cache: Dict[str, Tuple[UserProfile]], user_profile: UserProfile) -> None: for api_key in get_all_api_keys(user_profile): items_for_remote_cache[user_profile_by_api_key_cache_key(api_key)] = ( user_profile, ) items_for_remote_cache[user_profile_cache_key( user_profile.email, user_profile.realm)] = (user_profile, )
def user_cache_items(items_for_remote_cache, user_profile): # type: (Dict[Text, Tuple[UserProfile]], UserProfile) -> None items_for_remote_cache[user_profile_by_email_cache_key( user_profile.email)] = (user_profile, ) items_for_remote_cache[user_profile_by_id_cache_key( user_profile.id)] = (user_profile, ) items_for_remote_cache[user_profile_cache_key( user_profile.email, user_profile.realm)] = (user_profile, )
def user_cache_items(items_for_remote_cache: Dict[str, Tuple[UserProfile]], user_profile: UserProfile) -> None: items_for_remote_cache[user_profile_by_email_cache_key( user_profile.email)] = (user_profile, ) items_for_remote_cache[user_profile_by_id_cache_key( user_profile.id)] = (user_profile, ) items_for_remote_cache[user_profile_by_api_key_cache_key( user_profile.api_key)] = (user_profile, ) items_for_remote_cache[user_profile_cache_key( user_profile.email, user_profile.realm)] = (user_profile, )
def user_cache_items(items_for_remote_cache: Dict[Text, Tuple[UserProfile]], user_profile: UserProfile) -> None: items_for_remote_cache[user_profile_by_email_cache_key(user_profile.email)] = (user_profile,) items_for_remote_cache[user_profile_by_id_cache_key(user_profile.id)] = (user_profile,) items_for_remote_cache[user_profile_by_api_key_cache_key(user_profile.api_key)] = (user_profile,) items_for_remote_cache[user_profile_cache_key(user_profile.email, user_profile.realm)] = (user_profile,)
def user_cache_items(items_for_remote_cache, user_profile): # type: (Dict[Text, Tuple[UserProfile]], UserProfile) -> None items_for_remote_cache[user_profile_by_email_cache_key(user_profile.email)] = (user_profile,) items_for_remote_cache[user_profile_by_id_cache_key(user_profile.id)] = (user_profile,) items_for_remote_cache[user_profile_cache_key(user_profile.email, user_profile.realm)] = (user_profile,)
def user_cache_items(items_for_remote_cache: Dict[str, Tuple[UserProfile]], user_profile: UserProfile) -> None: for api_key in get_all_api_keys(user_profile): items_for_remote_cache[user_profile_by_api_key_cache_key(api_key)] = (user_profile,) items_for_remote_cache[user_profile_cache_key(user_profile.email, user_profile.realm)] = (user_profile,)