async_messages/__init__.py
def get_messages(user):
    """
    Fetch messages for given user.  Returns None if no such message exists.

    :param user: User instance
    """
    key = _user_key(user)
    result = cache.get(key)
    if result:
        cache.delete(key)
        return result
    return None
def get_messages(user):
    """
    Fetch messages for given user.  Returns None if no such message exists.

    :param user: User instance
    """
    key = _user_key(user)
    result = cache.get(key)
    if result:
        cache.delete(key)
        return result
    return None
Fetch messages for given user.  Returns None if no such message exists.

    :param user: User instance