mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-29 18:27:43 +08:00
.. | ||
controllers | ||
filters | ||
test | ||
.gitignore | ||
CMakeLists.txt | ||
config.json | ||
DateFuncs.h | ||
main.cc | ||
README.md | ||
RedisCache.h |
Redis example
An example for using coroutines of redis clients. This example is a redis implementation of the local sessions example on wiki.
Usage
First of all you need redis running on the port 6379;
Please use new compilers that support coroutines. Configure the project with the following command:
cmake .. -DCMAKE_CXX_FLAGS="-std=c++20 -fcoroutines" #for GCC 10
cmake .. -DCMAKE_CXX_FLAGS="-std=c++20" #for GCC >= 11
cmake .. -DCMAKE_CXX_FLAGS="/std:c++20" #for MSVC >= 16.25