feat: Add config to use Redis as cache driver

This commit is contained in:
Vincent BRIDIER 2025-02-14 11:32:35 +01:00
parent ff24444fa6
commit ef7a97678d
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
4 changed files with 76 additions and 5 deletions

View file

@ -24,10 +24,6 @@ SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
@ -96,3 +92,10 @@ MEILISEARCH_KEY=
# LARAVEL SCOUT
SCOUT_PREFIX=''
SCOUT_QUEUE=
# REDIS
REDIS_HOST=
REDIS_PORT=
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_PREFIX=

View file

@ -31,6 +31,7 @@
"mews/purifier": "^3.4",
"mobiledetect/mobiledetectlib": "^4.8",
"moneyphp/money": "^4.5",
"predis/predis": "^2.0",
"propaganistas/laravel-phone": "^5.3",
"sentry/sentry-laravel": "*",
"snipe/banbuilder": "^2.3",

63
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e7decd2630ba2accff59232853f18e2b",
"content-hash": "520c882c785a090ae5177efcd1819563",
"packages": [
{
"name": "24slides/laravel-saml2",
@ -4965,6 +4965,67 @@
],
"time": "2024-12-14T21:03:54+00:00"
},
{
"name": "predis/predis",
"version": "v2.3.0",
"source": {
"type": "git",
"url": "https://github.com/predis/predis.git",
"reference": "bac46bfdb78cd6e9c7926c697012aae740cb9ec9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/predis/predis/zipball/bac46bfdb78cd6e9c7926c697012aae740cb9ec9",
"reference": "bac46bfdb78cd6e9c7926c697012aae740cb9ec9",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^8.0 || ^9.4"
},
"suggest": {
"ext-relay": "Faster connection with in-memory caching (>=0.6.2)"
},
"type": "library",
"autoload": {
"psr-4": {
"Predis\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Till Krüss",
"homepage": "https://till.im",
"role": "Maintainer"
}
],
"description": "A flexible and feature-complete Redis client for PHP.",
"homepage": "http://github.com/predis/predis",
"keywords": [
"nosql",
"predis",
"redis"
],
"support": {
"issues": "https://github.com/predis/predis/issues",
"source": "https://github.com/predis/predis/tree/v2.3.0"
},
"funding": [
{
"url": "https://github.com/sponsors/tillkruss",
"type": "github"
}
],
"time": "2024-11-21T20:00:02+00:00"
},
{
"name": "propaganistas/laravel-phone",
"version": "5.3.3",

View file

@ -47,6 +47,12 @@ data:
MEILISEARCH_KEY: "${APP_MEILISEARCH_KEY}"
SCOUT_PREFIX: "${APP_SCOUT_PREFIX}"
SCOUT_QUEUE: "${APP_SCOUT_QUEUE}"
CACHE_DRIVER: "${APP_CACHE_DRIVER}"
REDIS_HOST: "${APP_REDIS_HOST}"
REDIS_PORT: "${APP_REDIS_PORT}"
REDIS_USERNAME: "${APP_REDIS_USERNAME}"
REDIS_PASSWORD: "${APP_REDIS_PASSWORD}"
REDIS_PREFIX: "${APP_REDIS_PREFIX}"
---
apiVersion: v1
kind: PersistentVolumeClaim