Browse Source

Create pool-reset.sh

cmd 
bash pool-reset.sh
master
yuriy0803 2 years ago committed by GitHub
parent
commit
7459955662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      pool-reset.sh

16
pool-reset.sh

@ -0,0 +1,16 @@
#!/bin/bash
# This is a shell script to reset a Redis pool.
# Define the Redis CLI command to flush the specified database.
REDIS_CLI="redis-cli"
DB_NUMBER=0
# Function to reset the Redis pool.
reset_redis_pool() {
$REDIS_CLI -n $DB_NUMBER flushdb
echo "Redis pool reset complete."
}
# Call the function to reset the Redis pool.
reset_redis_pool
Loading…
Cancel
Save