Releases: Vectorface/cache
v0.7.0
What's Changed
- Updates to PSR Simple Cache v2 and v3 by @francislavoie in #14
⚠️ No longer supports PSR Simple Cache v1
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- Don't set eternal TTL when incrementing in SQLCache, add types everywhere by @francislavoie in #13
Full Changelog: v0.5.0...v0.6.0
v0.5.0
What's Changed
- Fix psr/log dependency, bump to PHP 8.0 minimum by @francislavoie in #12
Full Changelog: v0.4.3...v0.5.0
v0.4.3
What's Changed
- Fix TieredCache
any()
to not short-circuit by @francislavoie in #11
Full Changelog: v0.4.2...v0.4.3
Bugfix: Expire Typehint
- Change calls to use 0 (zero) rather than null to match the typehint of the expiry parameter of Memcache object methods
Bugfix: Flags Typehint
- Change calls to use
0
(zero) rather thannull
to match the typehint of several Memcache object methods
v0.4.0
v0.3.0
Adds a new optional $ttl
parameter to the increment
and decrement
methods of AtomicCounter
. This sets the TTL only if the key did not already exist, and the TTL is not updated when the counter is incremented or decremented.
v0.2.1
Update composer.json
from "php": "^7.0.0"
to "php": ">=7.0.0"
to support PHP 8+
v0.2.0
Essentially a rewrite of the library.
-
Vectorface\Cache\Cache
no longer directly extendsPsr\SimpleCache\CacheInterface
(#4)This was done because the SimpleCache interface has some problems like php-fig/simple-cache#13 which make
@throws \Exception
docblock annotations not behave well, and because we had minor parameter typehint overrides likeiterable
->array|Traversable
since we want to maintain PHP <7.1 support (iterable
was introduced in 7.1) -
SimpleCache (PSR-16) support is moved to an adapter,
Vectorface\Cache\SimpleCacheAdapter
which can take anyVectorface\Cache\Cache
. Useful for framework interop, if needed. (#4) -
Added a new
Vectorface\Cache\AtomicCounter
interface (#5)Provides
increment
anddecrement
methods, and adds support to these cache implementations: APC, Memcache, Null, PHP, SQL