Skip to content

Instantly share code, notes, and snippets.

@dennisnderitu254
Created August 28, 2023 13:39
Show Gist options
  • Select an option

  • Save dennisnderitu254/cf6033eefb89b70a9ff97cea99e33225 to your computer and use it in GitHub Desktop.

Select an option

Save dennisnderitu254/cf6033eefb89b70a9ff97cea99e33225 to your computer and use it in GitHub Desktop.
Installing a redis instance

Install a redis instance

nderitu@ndech:~/redis-6.0.10$ src/redis-cli ping
PONG
nderitu@ndech:~/redis-6.0.10$ src/redis-cli
127.0.0.1:6379> set Holberton School
OK
127.0.0.1:6379> get Holberton 
"School"
127.0.0.1:6379> BGSAVE
Background saving started
127.0.0.1:6379> CONFIG GET dir
1) "dir"
2) "/home/nderitu/redis-6.0.10"
127.0.0.1:6379> set Holberton School
OK
127.0.0.1:6379> get Holberton 
"School"
127.0.0.1:6379> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment