更新 test-redis++.cpp

This commit is contained in:
myq 2025-02-18 10:55:09 +00:00
parent dca73cf373
commit 7f86118c33

View File

@ -22,7 +22,7 @@ void keyspace_subscriber_thread(sw::redis::Redis &redis) {
try { try {
auto sub = redis.subscriber(); auto sub = redis.subscriber();
sub.on_message([](std::string channel, std::string msg) { sub.on_message([](std::string channel, std::string msg) {
std::cout << "Received keyspace event from channel " << channel << ": " << msg << std::endl; std::cout << "Received keyspace event from channel: " << channel << " : " << msg << std::endl;
}); });
//突然又可以了 //突然又可以了