Skip to content

Commit c363843

Browse files
committed
Remove hiredis recommendation in docs
1 parent 6851a63 commit c363843

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

docs/appendices/deployment.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ Instead, we make the best of things by enabling caching in the development envir
1616

1717
### Use Redis as your cache store
1818

19-
We want to change the cache store to make use of Redis. First we should enable the `redis` gem, as well as `hiredis`, a native wrapper which is much faster than the Ruby gem alone.
19+
We want to change the cache store to make use of Redis. First we should enable the `redis` gem.
2020

2121
::: code-group
2222
```ruby [Gemfile]
23-
gem "redis", ">= 4.0", require: ["redis", "redis/connection/hiredis"]
24-
gem "hiredis"
23+
gem "redis", ">= 4.0", require: ["redis"]
2524
```
2625
:::
2726

@@ -30,7 +29,6 @@ Now that Redis is available to your application, you need to configure your deve
3029
::: code-group
3130
```ruby [config/environments/development.rb]
3231
config.cache_store = :redis_cache_store, {
33-
driver: :hiredis,
3432
url: ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" }
3533
}
3634

@@ -71,7 +69,6 @@ Install the `redis-session-store` gem into your project, and then in your `produ
7169
::: code-group
7270
```ruby [config/environments/production.rb]
7371
config.cache_store = :redis_cache_store, {
74-
driver: :hiredis,
7572
url: ENV.fetch("REDIS_URL")
7673
}
7774

@@ -80,7 +77,6 @@ config.session_store(
8077
key: "_session_production",
8178
serializer: :json,
8279
redis: {
83-
driver: :hiredis,
8480
expire_after: 1.year,
8581
ttl: 1.year,
8682
key_prefix: "app:session:",

docs/appendices/testing.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Install [Redis](https://redis.io/download). Make sure that it's running and acce
2020

2121
::: code-group
2222
```ruby [Gemfile]
23-
gem "redis", ">= 4.0", :require => ["redis", "redis/connection/hiredis"]
24-
gem "hiredis"
23+
gem "redis", ">= 4.0", require: ["redis"]
2524
```
2625
:::
2726

@@ -47,7 +46,10 @@ Configure your cache store and turn on ActionController caching:
4746
::: code-group
4847
```ruby [config/environments/test.rb]
4948
config.action_controller.perform_caching = true
50-
config.cache_store = :redis_cache_store, {driver: :hiredis, url: Rails.application.credentials.redis_url}
49+
50+
config.cache_store = :redis_cache_store, {
51+
url: Rails.application.credentials.redis_url
52+
}
5153
```
5254
:::
5355

docs/guide/persistence.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The Reflex class makes use of the `session.id`, the `data-id` attributes from in
187187

188188
If Redis is your Rails cache store, you're already one step ahead!
189189

190-
Depending on your application and the kind of data you're working with, [calling the Redis engine directly](/appendices/deployment#use-redis-as-your-cache-store) (through the `redis` gem, in tandem with the `hiredis` gem for optimal performance) from your Reflex methods allows you to work with the full suite of data structure manipulation tools that are available in response to the state change operations your users initiate.
190+
Depending on your application and the kind of data you're working with, [calling the Redis engine directly](/appendices/deployment#use-redis-as-your-cache-store) (through the `redis` gem) from your Reflex methods allows you to work with the full suite of data structure manipulation tools that are available in response to the state change operations your users initiate.
191191

192192
Using Redis is beyond the scope of this document, but an excellent starting point is Jesus Castello's excellent "[How to Use the Redis Database in Ruby](https://www.rubyguides.com/2019/04/ruby-redis)".
193193

0 commit comments

Comments
 (0)