def store_first_submission(nonce, data): key = REDIS_FIRSTSUBMISSION_KEY(nonce=nonce) redis_store.set(key, json.dumps(data)) redis_store.expire(key, 300000)
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
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