Skip to content

ยฎ๏ธ Redisยถ

๐Ÿ“ Inject Templates to Redisยถ

HSET messageTemplates "unibeam:login2" "Si vous avez initiรฉ cette demande, veuillez approuver la demande dโ€™accรจs ร  votre compte [displayablename]" "unibeam:login5" "Please approve your login ttempt to your-company.com" "unibeam:login4" "If you have initiated this request, please approve the login attempt to [displayablename]" "unibeam:login3" "Si ha iniciado este acceso, por favor pruebe el inicio de sesiรณn para [displayablename]" "unibeam:purchase2" "Please approve your $234.65 purchase at your-company.com." "unibeam:purchase1" "If you have initiated this purchase, please pprove the $234.65 purchase at your-company.com." "unibeam:login1" "If you have initiated this request, please approve the login attempt to your-company.com"

๐Ÿ› ๏ธ Basic Redis Commandsยถ

Common Redis Commands

The following commands are useful for interacting with Redis in troubleshooting and day-to-day operations.

# Set a key with a value
SET mykey "Hello, Redis!"

# Get the value of a key
GET mykey

# Delete a key
DEL mykey

# List all keys (use with caution in production)
KEYS *

# Increment a numeric value
INCR counter

# Set a key with an expiration (in seconds)
SETEX tempkey 60 "This will expire in 60 seconds"

# Add a member to a set
SADD myset "member1"

# Get all members of a set
SMEMBERS myset

# Get all fields and values in a hash
HGETALL messageTemplates

Security Reminder

Avoid using KEYS * in production environments with large datasets, as it can impact performance.