Skip to content

Commit

Permalink
fix: Support valkey instead of redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Oct 17, 2024
1 parent cea50b6 commit d5eb983
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cache/run_redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
set -e
set -x

../../redis/src/redis-server ./cache.conf
if [ -f ../../valkey/src/valkey-server ]; then
../../valkey/src/valkey-server ./cache.conf
elif [ -f ../../redis/src/redis-server ]; then
../../redis/src/redis-server ./cache.conf
else
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
/usr/bin/redis-server ./cache.conf
fi
9 changes: 8 additions & 1 deletion whowas/run_redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
set -e
set -x

../../redis/src/redis-server ./whowas.conf
if [ -f ../../valkey/src/valkey-server ]; then
../../valkey/src/valkey-server ./cache.conf
elif [ -f ../../redis/src/redis-server ]; then
../../redis/src/redis-server ./cache.conf
else
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
/usr/bin/redis-server ./cache.conf
fi

0 comments on commit d5eb983

Please sign in to comment.