Example #1
0
def store_first_submission(nonce, data):
    key = REDIS_FIRSTSUBMISSION_KEY(nonce=nonce)
    redis_store.set(key, json.dumps(data))
    redis_store.expire(key, 300000)
Example #2
0
def store_first_submission(nonce, data):
    key = REDIS_FIRSTSUBMISSION_KEY(nonce=nonce)
    redis_store.set(key, json.dumps(data))
    redis_store.expire(key, 300000)
Example #3
0
def temp_store_hostname(hostname, referrer):
    nonce = uuid.uuid4()
    key = REDIS_HOSTNAME_KEY(nonce=nonce)
    redis_store.set(key, hostname + ',' + referrer)
    redis_store.expire(key, 300000)
    return nonce
Example #4
0
def temp_store_hostname(hostname, referrer):
    nonce = uuid.uuid4()
    key = REDIS_HOSTNAME_KEY(nonce=nonce)
    redis_store.set(key, hostname+','+referrer)
    redis_store.expire(key, 300000)
    return nonce