experteam / api-redis-bundle
REDIS functionality bundle for APIs.
Installs: 8 580
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- ext-redis: *
- doctrine/doctrine-bundle: ^2.8
- doctrine/orm: ^2.14
- experteam/api-base-bundle: ^3.3.0
- snc/redis-bundle: ^4.3
- stof/doctrine-extensions-bundle: ^1.6
- symfony/dependency-injection: 6.3.*|6.4.*
- symfony/http-kernel: 6.3.*|6.4.*
- symfony/messenger: 6.3.*|6.4.*
- symfony/serializer: 6.3.*|6.4.*
Requires (Dev)
- symfony/config: 6.3.*|6.4.*
- symfony/dotenv: 6.3.*|6.4.*
- symfony/flex: ^2
- symfony/phpunit-bridge: 6.3.*|6.4.*
- symfony/property-access: 6.3.*|6.4.*
- dev-master
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.x-dev
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.44
- 1.0.43
- 1.0.42
- 1.0.41
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dev
This package is auto-updated.
Last update: 2024-10-30 18:04:02 UTC
README
Redis Services for APIs in Symfony 5.1+
It includes:
- Redis Client: Predis client wrapper for writing and reading in redis.
- Redis Transport: Service to save entities in redis and dispatch message queues.
Install
- Run de following composer command:
composer require experteam/api-redis-bundle
-
Create the configuration file through any of the following options:
a. Manually copy the example file in the package root to the folder
config/packages/
.
b. Copy thevendor_copy.php
file to the root of the project and configure the scripts in thecomposer.json
file:"scripts": { "vendor-scripts": [ "@php vendor_copy.php -s vendor/experteam/api-redis-bundle/experteam_api_redis.yaml.example -d config/packages/experteam_api_redis.yaml --not-overwrite --ignore-no-source" ], "post-install-cmd": [ "@vendor-scripts" ], "post-update-cmd": [ "@vendor-scripts" ] },
-
Edit the bundle configuration file
config/packages/experteam_api_redis.yaml
:
experteam_api_redis:
serialize_groups:
save: read
message: read
elk_logger:
save: true
message: true
entities:
[Entity Namespace]:
prefix: [prefix]
save: false
message: true
message_class: [Message Class Namespace] #required only if message equal true
[Entity Namespace]:
prefix: [prefix]
save: true
save_method: getId #optional (default getId)
message: false
Update
Run de following composer command:
composer update experteam/api-redis-bundle