13 lines
359 B
Bash
Executable File
13 lines
359 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
#ddev-generated
|
|
## Description: Flush all cache inside the Redis container
|
|
## Usage: redis-flush
|
|
## Example: "ddev redis-flush"
|
|
|
|
if [ -f /etc/redis/conf/security.conf ]; then
|
|
redis-cli -p 6379 -h "${REDIS_HOSTNAME:-redis}" -a redis --no-auth-warning FLUSHALL ASYNC
|
|
else
|
|
redis-cli -p 6379 -h "${REDIS_HOSTNAME:-redis}" FLUSHALL ASYNC
|
|
fi
|