Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note tested / supported versions of Redis in the Readme #79

Merged
merged 4 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, "3.0"]
redis_server: ["4", "5", "6.2"]
ruby: ["2.7", "3.0"]

name: Redis server ${{ matrix.redis_server }} - Ruby ${{ matrix.ruby }}

steps:
- uses: actions/checkout@v2
Expand All @@ -16,10 +19,10 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Set up Redis 4
- name: Set up Redis ${{ matrix.redis_server }}
uses: supercharge/[email protected]
with:
redis-version: 4
redis-version: ${{ matrix.redis_server }}

- name: Run tests
run: bin/test
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ Additional configurations can be added under `config/redis/*.yml` and referenced

Kredis passes the configuration to `Redis.new` to establish the connection. See the [Redis documentation](https://github.com/redis/redis-rb) for other configuration options.

### Redis support

Kredis works with Redis server 4.0+, with the [Redis Ruby](https://github.com/redis/redis-rb) client version 4.2+.

### Setting SSL options on Redis Connections

If you need to connect to Redis with SSL, the recommended approach is to set your Redis instance manually by adding an entry to the `Kredis::Connections.connections` hash. Below an example showing how to connect to Redis using Client Authentication:
Expand Down