Example #1
0
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, )
Example #2
0
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, )
Example #3
0
def user_cache_items(items_for_remote_cache, user_profile):
    # type: (Dict[text_type, 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,)
Example #4
0
def user_cache_items(items_for_remote_cache, user_profile):
    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,)
Example #5
0
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,)
Example #6
0
def user_cache_items(items_for_memcached, user_profile):
    items_for_memcached[user_profile_by_email_cache_key(user_profile.email)] = (user_profile,)
    items_for_memcached[user_profile_by_id_cache_key(user_profile.id)] = (user_profile,)
Example #7
0
def user_cache_items(items_for_remote_cache, user_profile):
    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, )