Download the PHP package fyennyi/async-cache-bridge-symfony without Composer
On this page you can find all versions of the php package fyennyi/async-cache-bridge-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fyennyi/async-cache-bridge-symfony
More information about fyennyi/async-cache-bridge-symfony
Files in fyennyi/async-cache-bridge-symfony
Package async-cache-bridge-symfony
Short Description Symfony bridge for Fyennyi AsyncCache.
License LicenseRef-CSSM-Unlimited-2.0
Informations about the package async-cache-bridge-symfony
Async Cache Symfony Bridge
This is a Symfony Bridge for the Async Cache PHP library. It integrates the asynchronous caching manager directly into your Symfony application, automatically wiring it with the default Symfony Cache, Lock, and Logger components.
Features
- Automatic Service Registration: Registers
AsyncCacheManageras a service in the container. - Seamless Integration: Automatically injects:
cache.app(Your default Symfony cache pool).lock.factory(Symfony Lock component for atomic operations).logger(Monolog integration).event_dispatcher.
- Configuration Friendly: Allows defining global strategies via
yamlconfiguration.
Installation
Run the following command in your terminal:
If you are not using Symfony Flex, you may need to register the bundle manually in config/bundles.php:
Configuration
You can configure the default behavior of the cache manager in config/packages/async_cache.yaml.
Usage
Injecting the Manager
The bridge registers the Fyennyi\AsyncCache\AsyncCacheManager class in the service container. You can use dependency injection to access it in your Controllers or Services.
Requirements
Since this bridge automatically wires Symfony components, ensure your environment has the necessary services configured:
- Cache: A configured
cache.apppool (standard in Symfony). - Lock: The
symfony/lockcomponent (recommended for atomic operations).
Contributing
Contributions are welcome and appreciated! Here's how you can contribute:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please make sure to update tests as appropriate and adhere to the existing coding style.
License
This library is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2). See the LICENSE file for details.
All versions of async-cache-bridge-symfony with dependencies
fyennyi/async-cache-php Version ^1.1
symfony/framework-bundle Version ^6.4