drogon/examples/redis_cache
Ken Matsui c2b8e7c624
Enable readability/inheritance for cpplint (#1934)
2024-01-31 11:21:18 +08:00
..
controllers Drop cpp14 build (#1740) 2023-08-23 11:49:55 +08:00
filters Enable readability/inheritance for cpplint (#1934) 2024-01-31 11:21:18 +08:00
test Make & and * directly adjacent to variable names (#1810) 2023-10-12 11:27:25 +08:00
.gitignore Add an example for using coroutines of redis clients (#1080) 2021-11-21 12:09:34 +08:00
CMakeLists.txt Add an example for using coroutines of redis clients (#1080) 2021-11-21 12:09:34 +08:00
DateFuncs.h Add newline at EOF (#1932) 2024-01-31 10:43:30 +08:00
README.md Add an example for using coroutines of redis clients (#1080) 2021-11-21 12:09:34 +08:00
RedisCache.h Add an example for using coroutines of redis clients (#1080) 2021-11-21 12:09:34 +08:00
config.json GitHub Action to find typos in the codebase using codespell (#1876) 2023-12-09 13:48:24 +08:00
main.cc Drop cpp14 build (#1740) 2023-08-23 11:49:55 +08:00

README.md

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