コード例 #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, )
コード例 #2
0
ファイル: cache_helpers.py プロジェクト: sohilladhani/zulip
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, )
コード例 #3
0
ファイル: cache_helpers.py プロジェクト: Jianchun1/zulip
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,)
コード例 #4
0
ファイル: cache_helpers.py プロジェクト: 8trust/zulip
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,)
コード例 #5
0
ファイル: cache_helpers.py プロジェクト: gnprice/zulip
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,)
コード例 #6
0
ファイル: cache_helpers.py プロジェクト: Croolis/zulip
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,)
コード例 #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, )