From bc781006131239cb6b710e27b43534dab3c82274 Mon Sep 17 00:00:00 2001 From: Zakher Masri Date: Tue, 18 Mar 2025 12:02:03 +0300 Subject: [PATCH] remove redis part --- GUIDES.md | 93 +------------------------------------------------------ 1 file changed, 1 insertion(+), 92 deletions(-) diff --git a/GUIDES.md b/GUIDES.md index 59f929bd..cfb7cd81 100644 --- a/GUIDES.md +++ b/GUIDES.md @@ -46,95 +46,4 @@ sudo apt-get install docker-ce docker-ce-cli containerd.io 2. Visit [Docker Desktop for Windows](https://www.docker.com/products/docker-desktop) 3. Download the installer 4. Run the installer and follow the prompts -5. Start Docker Desktop from the Start menu - -# Redis - -## Installation - -### macOS - -```bash -brew install redis -``` - -### Ubuntu - -```bash -sudo apt-get update -sudo apt-get install redis-server -``` - -### Windows - -1. Download the Redis Windows Subsystem for Linux (WSL) package -2. Follow WSL installation instructions -3. Install Redis through WSL using Ubuntu instructions - -## Start Redis Server - -### macOS and Linux - -```bash -# Start Redis server -redis-server - -# To start Redis in the background -redis-server --daemonize yes - -# To stop Redis server -redis-cli shutdown -``` - -### Using Docker - -```bash -# Pull Redis image -docker pull redis - -# Run Redis container -docker run --name my-redis -d -p 6379:6379 redis - -# Connect to Redis CLI -docker exec -it my-redis redis-cli -``` - -## Testing Redis Connection - -```bash -# Connect to Redis CLI -redis-cli - -# Test connection -ping -# Should respond with "PONG" - -# Set and get a test value -set test "Hello Redis" -get test -``` - -## Common Redis Commands - -```bash -# Set a key -SET key value - -# Get a value -GET key - -# Delete a key -DEL key - -# Check if key exists -EXISTS key - -# Set expiration (in seconds) -EXPIRE key seconds - -# List all keys -KEYS * - -# Get key type -TYPE key -``` +5. Start Docker Desktop from the Start menu \ No newline at end of file