summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus2022-01-07 20:46:51 +0100
committerhorus2022-01-07 20:46:51 +0100
commit2aa6eef45e4de7b4409d9284bb201bb5eed0feb5 (patch)
tree37bebd1ca1e63abc4792d4d4cb85e9f18c0a8a1d
parent01d2d834daae60324338b786c263918b343400bb (diff)
downloadkategorischeraperitif-2aa6eef45e4de7b4409d9284bb201bb5eed0feb5.tar.gz
add redis as cache backend
-rw-r--r--composer.json1
-rw-r--r--composer.lock68
-rw-r--r--config/database.php2
3 files changed, 69 insertions, 2 deletions
diff --git a/composer.json b/composer.json
index 53c189b..8a0f0c1 100644
--- a/composer.json
+++ b/composer.json
@@ -12,6 +12,7 @@
"laravel/tinker": "*",
"laravelium/feed": "^8.0",
"matomo/matomo-php-tracker": "^3.0",
+ "predis/predis": "^1.1",
"spatie/laravel-sitemap": "^5.9",
"willwashburn/phpamo": "^1.0"
},
diff --git a/composer.lock b/composer.lock
index 2058223..6632c00 100644
--- a/composer.lock
+++ b/composer.lock
@@ -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": "ec9d9979adcc031686ca96ee46f8cf58",
+ "content-hash": "fb80f3e68613221d321592e91ddb9c89",
"packages": [
{
"name": "brick/math",
@@ -1991,6 +1991,72 @@
"time": "2020-07-20T17:29:33+00:00"
},
{
+ "name": "predis/predis",
+ "version": "v1.1.10",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/predis/predis.git",
+ "reference": "a2fb02d738bedadcffdbb07efa3a5e7bd57f8d6e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/predis/predis/zipball/a2fb02d738bedadcffdbb07efa3a5e7bd57f8d6e",
+ "reference": "a2fb02d738bedadcffdbb07efa3a5e7bd57f8d6e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.8"
+ },
+ "suggest": {
+ "ext-curl": "Allows access to Webdis when paired with phpiredis",
+ "ext-phpiredis": "Allows faster serialization and deserialization of the Redis protocol"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Predis\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Daniele Alessandri",
+ "email": "suppakilla@gmail.com",
+ "homepage": "http://clorophilla.net",
+ "role": "Creator & Maintainer"
+ },
+ {
+ "name": "Till Krüss",
+ "homepage": "https://till.im",
+ "role": "Maintainer"
+ }
+ ],
+ "description": "Flexible and feature-complete Redis client for PHP and HHVM",
+ "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/v1.1.10"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sponsors/tillkruss",
+ "type": "github"
+ }
+ ],
+ "time": "2022-01-05T17:46:08+00:00"
+ },
+ {
"name": "psr/container",
"version": "1.0.0",
"source": {
diff --git a/config/database.php b/config/database.php
index 7451147..a104c99 100644
--- a/config/database.php
+++ b/config/database.php
@@ -127,7 +127,7 @@ return [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
- 'database' => 0,
+ 'database' => env('REDIS_DB', 0),
],
],