Introduction
Redis can be used in different ways to make apps faster, store data, or help parts of an app talk to each other.
SET key value GET key PUBLISH channel message SUBSCRIBE channel
SET user:1 "John" GET user:1
PUBLISH news "Hello subscribers!"
SUBSCRIBE newsSET page:view:123 1 GET page:view:123 INCR page:view:123 GET page:view:123 PUBLISH alerts "New user signed up" SUBSCRIBE alerts
SUBSCRIBE news. What is wrong if your goal was to send a message?Pass the test and this pattern moves unknown