Exemple #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,)
Exemple #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,)
Exemple #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,)
Exemple #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, )
Exemple #5
0
def recipient_cache_items(items_for_memcached, recipient):
    items_for_memcached[get_recipient_cache_key(recipient.type, recipient.type_id)] = (recipient,)
Exemple #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, )