Redis is a lightweight key-value data store. in terms of the key-value support, it offers several popular data collection types. let’s test it quickly. or check it here for the real tutorial ,
Download the source code,
If you don’t have the C compiler, try yum install gcc to install the compiler. this may take a while, C has a lot libs/headers to download and update.
BY default, Redis pick up the port 6379, you can find it in the redis.conf setting,
then start the service ‘src/redis-server redis.conf’ which will run in forground by default.
you can change the settings in redis.conf by change demonize:yes, it will run in background.
you can tell the port 6379 is picked up the redis,
We also can define a TTL for this key by put a expire keyword, it will disappear in 120 seconds