Skip to content

Commit b369e16

Browse files
authored
Merge pull request #36 from wardenenv/valkey-docs
Add Valkey information to Docs
2 parents 2e082bf + e101eed commit b369e16

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

configuration/magento2-testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ All the necessary files are located in `dev/tests/integration/`:
7777

7878
2. You need to create `etc/install-config-mysql.php` based on `etc/install-config-mysql.php.dist` as a template. The arguments are exactly the same to those you use for `bin/magento setup:install`:
7979

80+
:::{note}
81+
Please note the below values for cache and session may be different if using Valkey instead of Redis
82+
:::
83+
8084
```php
8185
return [
8286
'db-host' => 'tmp-mysql',

environments/customizing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The versions of MariaDB, Elasticsearch, Varnish, Redis, NodeJS and Composer may
1111
* `MARIADB_VERSION`
1212
* `ELASTICSEARCH_VERSION`
1313
* `REDIS_VERSION`
14+
* `VALKEY_VERSION`
1415
* `VARNISH_VERSION`
1516
* `RABBITMQ_VERSION`
1617
* `NODE_VERSION`
@@ -20,6 +21,7 @@ Start of some environments could be skipped by using variables in `.env` file:
2021

2122
* `WARDEN_DB=0`
2223
* `WARDEN_REDIS=0`
24+
* `WARDEN_VALKEY=0`
2325

2426
## Docker Specific Customizations
2527
To override default docker settings, add a custom configuration file in your project root

environments/magento2.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ In addition to the below manual process, there is a `Github Template available f
6161
BLACKFIRE_SERVER_ID=
6262
BLACKFIRE_SERVER_TOKEN=
6363

64+
:::{note}
65+
Starting with Magento 2.4.8, set:
66+
67+
WARDEN_REDIS=0
68+
WARDEN_VALKEY=1
69+
VALKEY_VERSION=8.1
70+
71+
:::
72+
6473
3. Sign an SSL certificate for use with the project (the input here should match the value of `TRAEFIK_DOMAIN` in the above `.env` example file):
6574

6675
warden sign-certificate exampleproject.test
@@ -102,6 +111,10 @@ In addition to the below manual process, there is a `Github Template available f
102111

103112
8. Install the application and you should be all set:
104113

114+
:::{note}
115+
Please note that if using Valkey instead of Redis, the value of the session and cache flags will be different
116+
:::
117+
105118
## Install Application
106119
bin/magento setup:install \
107120
--backend-frontname=backend \

usage.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@ Flush varnish:
3434

3535
warden env exec -T varnish varnishadm 'ban req.url ~ .'
3636

37-
Connect to redis:
37+
Connect to redis/valkey:
3838

3939
warden redis
40+
warden valkey
4041

41-
Flush redis completely:
42+
Flush redis/valkey completely:
4243

4344
warden redis flushall
45+
warden valkey flushall
4446

45-
Run redis continous stat mode
47+
Run redis continuous stat mode
4648

4749
warden redis --stat
4850

0 commit comments

Comments
 (0)