experteam / api-redis-bundle
REDIS functionality bundle for APIs.
Package info
github.com/experteam-mx/api-redis-bundle
Type:symfony-bundle
pkg:composer/experteam/api-redis-bundle
4.2.3
2025-11-12 02:58 UTC
Requires
- php: >=8.1
- ext-json: *
- ext-redis: *
- doctrine/dbal: ^3
- doctrine/doctrine-bundle: ^2.13
- doctrine/orm: ^3.3
- experteam/api-base-bundle: ^4.0.0
- snc/redis-bundle: ^4.8
- stof/doctrine-extensions-bundle: ^1.13
- symfony/dependency-injection: 6.4.*
- symfony/http-kernel: 6.4.*
- symfony/messenger: 6.4.*
- symfony/serializer: 6.4.*
Requires (Dev)
- symfony/config: 6.4.*
- symfony/dotenv: 6.4.*
- symfony/flex: ^2
- symfony/phpunit-bridge: 6.4.*
- symfony/property-access: 6.4.*
This package is auto-updated.
Last update: 2026-05-27 02:54:04 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.phpfile to the root of the project and configure the scripts in thecomposer.jsonfile:"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