Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Api Redis Bundle Laravel Package

experteam/api-redis-bundle

Symfony 5.1+ bundle providing Redis services for APIs: a Predis client wrapper for reading and writing, plus a transport to persist entities and dispatch message queues, configured via YAML with per-entity prefixes and serialization groups.

View on GitHub
Deep Wiki
Context7

API Redis Bundle

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

  1. Run de following composer command:
composer require experteam/api-redis-bundle
  1. 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 the vendor_copy.php file to the root of the project and configure the scripts in the composer.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"
         ]
     },
    
  2. 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

License

MIT license.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel