Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

A sample code to save information in Redis on CentOS 7 using the C++ Redis client library cpp_redis:

This code connects to a Redis server running on localhost at port 6379 and saves the key-value pair "key": "value" to the database. 


Note: Before running this code, you need to install and run a Redis server on your machine, and also install the cpp_redis library.

...