electivegroup/cache-bundle

Elective Cache Bundle

Installs: 1 552

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.1 2024-02-23 06:49 UTC

This package is auto-updated.

Last update: 2024-04-23 08:11:53 UTC


README

Cache bundle for symfony

Add routes to your routing file:

# app/config/routes.yaml
    cache_bundle:
        resource: '@ElectiveCacheBundle/Resources/config/routes.yaml'

Add service to your service file:

# app/config/services.yaml
    imports:
        - { resource: '@ElectiveCacheBundle/Resources/config/services.yaml' }

Add cache subscriptions to your env file, example:

# app/.env
    CACHE_SUBSCRIPTIONS=-acl-api-organisation-updated-candidates-api,-acl-api-user-updated-candidates-api