Пример #1
0
def recipient_cache_items(items_for_remote_cache, recipient):
    # type: (Dict[text_type, Tuple[Recipient]], Recipient) -> None
    items_for_remote_cache[get_recipient_cache_key(recipient.type, recipient.type_id)] = (recipient,)
Пример #2
0
def recipient_cache_items(items_for_remote_cache, recipient):
    items_for_remote_cache[get_recipient_cache_key(recipient.type, recipient.type_id)] = (recipient,)
Пример #3
0
def recipient_cache_items(items_for_remote_cache: Dict[Text, Tuple[Recipient]],
                          recipient: Recipient) -> None:
    items_for_remote_cache[get_recipient_cache_key(recipient.type, recipient.type_id)] = (recipient,)
Пример #4
0
def recipient_cache_items(items_for_remote_cache: Dict[str, Tuple[Recipient]],
                          recipient: Recipient) -> None:
    items_for_remote_cache[get_recipient_cache_key(
        recipient.type, recipient.type_id)] = (recipient, )
Пример #5
0
def recipient_cache_items(items_for_memcached, recipient):
    items_for_memcached[get_recipient_cache_key(recipient.type, recipient.type_id)] = (recipient,)
Пример #6
0
def recipient_cache_items(items_for_remote_cache, recipient):
    items_for_remote_cache[get_recipient_cache_key(
        recipient.type, recipient.type_id)] = (recipient, )