def _get_notification(self, token_hex, payload):
        token_bin = a2b_hex(token_hex)
        token_length_bin = APNs.packed_ushort_big_endian(len(token_bin))
        payload_json = payload.json()
        payload_length_bin = APNs.packed_ushort_big_endian(len(payload_json))
        
        notification = ('\0' + token_length_bin + token_bin
            + payload_length_bin + payload_json)

        return notification
Construct a new RelationshipCache.
dataset/ETHPy150Open SafeSlingerProject/SafeSlinger-AppEngine/safeslinger-messenger/python/apns_enhanced.py/GatewayConnection._get_notification--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/examples/dogpile_caching/caching_query.py/RelationshipCache.__init__