Download the PHP package mbretter/stk-cache without Composer
On this page you can find all versions of the php package mbretter/stk-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mbretter/stk-cache
More information about mbretter/stk-cache
Files in mbretter/stk-cache
Package stk-cache
Short Description Cache implementation PSR-6 and PSR-16
License BSD-3-Clause
Homepage https://www.bretterklieber.com
Informations about the package stk-cache
php cache implementation (PSR-6 and PSR-16)
Support for memcached and APCu is included.
Memcached
APCu
Blackhole
The blackhole pool is a dummy pool, which does not do any caching. It can be used on a development environment, when caching should be disabled.
Memory
A cache pool which uses an instance variable of the pool object as cache.
Additional methods
Besides, the PSR standards, the Cache has implemented some useful extra methods.
getSet
getSet invokes a closure, if the key was not found inside the cache. This helps to build a linear code base, without additional conditions checking whether the key was found or not.
If the key was found, the value is returned directly, without invkoing the closure.
Grouping
If you want to invalidate a group of cache items, by only removing one key, this could be done by using the group feature.
getSetGrouped works in the same way as getSet, but with the additional group key.
All versions of stk-cache with dependencies
psr/simple-cache Version ^3.0.0
psr/cache Version ^3.0.0
mbretter/stk-di Version >=2.0.1