This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "crow.h" | |
#include "crow/middlewares/session.h" | |
#include <iostream> | |
#include <cstring> | |
/* | |
An example for the upcoming Sessions middleware feature. | |
This is a small website with login functionality. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
import redis | |
import time | |
import random | |
r = redis.Redis(host='localhost', port=6379, db=0) | |
def rtest(func): | |
def wrapper(): | |
func() |