Download the PHP package becklyn/cache without Composer
On this page you can find all versions of the php package becklyn/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download becklyn/cache
More information about becklyn/cache
Files in becklyn/cache
Package cache
Short Description A cache bundle providing a simple (and fast) cache
License BSD-3-Clause
Homepage https://github.com/Becklyn/cache-bundle
Informations about the package cache
Becklyn Cache Bundle
Provides a simple cache, that should be easy to use and high performance. Warning: for highly concurrent usage you should either prepare the cache in advance or use symfony's own cache, as it has proper cache stampede protection.
Usage
Fetch the simple cache factory and get the cache item:
Caching Based on Symfony Config
You can either pass the cache key and generator to the getItem()
method (like in the example above),
or you can additionally pass in resources that should be tracked and can be used for cache invalidation.
If you pass resources, this will be a two-level cache:
- first level will be the plain symfony/cache, which is really fast but has no proper way of cache invalidation.
- second level will be the
ConfigCache
which will automatically be invalidated if some of the tracked resources change.
All versions of cache with dependencies
ext-json Version *
symfony/cache Version ^5.4.3 || ^6.0.3
symfony/config Version ^5.4.3 || ^6.0.3
symfony/dependency-injection Version ^5.4.3 || ^6.0.3
symfony/filesystem Version ^5.4.3 || ^6.0.3
symfony/framework-bundle Version ^5.4.3 || ^6.0.3
symfony/http-kernel Version ^5.4.4 || ^6.0.4