Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rekalogika/psr-16-simple-cache-bundle
Enables PSR-16 Simple Cache services in Symfony projects
https://github.com/rekalogika/psr-16-simple-cache-bundle
php psr psr-16 simple-cache symfony symfony-bundle
Last synced: about 1 month ago
JSON representation
Enables PSR-16 Simple Cache services in Symfony projects
- Host: GitHub
- URL: https://github.com/rekalogika/psr-16-simple-cache-bundle
- Owner: rekalogika
- License: mit
- Created: 2023-09-05T16:58:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T15:49:55.000Z (2 months ago)
- Last Synced: 2024-09-30T16:04:48.637Z (about 2 months ago)
- Topics: php, psr, psr-16, simple-cache, symfony, symfony-bundle
- Language: PHP
- Homepage: https://rekalogika.dev/psr-16-simple-cache-bundle
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# rekalogika/psr-16-simple-cache-bundle
Enables PSR-16 Simple Cache services in Symfony projects. These were previously
enabled in the older Symfony version but were removed in 4.3.## Synopsis
```php
use Psr\SimpleCache\CacheInterface;class SomeService
{
public function __construct(private CacheInterface $cache)
{
}public function doSomething()
{
$this->cache->set('foo', 'bar');
}
}
```## Documentation
[rekalogika.dev/psr-16-simple-cache-bundle](https://rekalogika.dev/psr-16-simple-cache-bundle)
## Credits
This package is just a service definition. The actual implementation is done by
the Symfony project; they just don't make the service available by default.* [Adapters For Interoperability between PSR-6 and PSR-16 Cache](https://symfony.com/doc/current/components/cache/psr6_psr16_adapters.html)
* [Service definition by Tobion](https://github.com/symfony/symfony/issues/28918#issuecomment-433489302)## License
MIT
## Contributing
Issues and pull requests should be filed in the GitHub repository
[rekalogika/psr-16-simple-cache-bundle](https://github.com/rekalogika/psr-16-simple-cache-bundle).