audio_trans/examples/redis_cache
wangjiyu f6a9d677cd init 2025-04-07 11:31:21 +08:00
..
controllers init 2025-04-07 11:31:21 +08:00
filters init 2025-04-07 11:31:21 +08:00
test init 2025-04-07 11:31:21 +08:00
.gitignore init 2025-04-07 11:31:21 +08:00
CMakeLists.txt init 2025-04-07 11:31:21 +08:00
DateFuncs.h init 2025-04-07 11:31:21 +08:00
README.md init 2025-04-07 11:31:21 +08:00
RedisCache.h init 2025-04-07 11:31:21 +08:00
config.json init 2025-04-07 11:31:21 +08:00
main.cc init 2025-04-07 11:31:21 +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