forked from emodric/ezplatform-legacy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Redis-based sessions if Redis is available (#254)
* Use Redis-based sessions if Redis is available. * Formatting fix. * Add redis extension. * Add Redis services and relationships. * Revise Redis glue code. * Formatting fixes. * Fix inline comment * Update platformsh.php * CS * CS [skip ci] * Add inline note about redis-persistent * also mention redis restarts [skip ci]
- Loading branch information
Showing
3 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
mysqldb: | ||
type: mysql:10.0 | ||
disk: 2048 | ||
|
||
rediscache: | ||
type: 'redis:3.2' | ||
|
||
# If you wish to have a separate Redis instance for sessions, uncomment | ||
# this service and the corresponding relationship in .platform.app.yaml. | ||
#redissession: | ||
# type: 'redis:3.2' | ||
# | ||
# Alternatively if you have a requirement that sessions are persisted across server/redis restarts, | ||
# have storage space to spare for this, and don't mind a bit slower instance type of redis | ||
#redissession: | ||
# type: redis-persistent:3.2 | ||
# disk: 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters