Upgrading psr/simple-cache 0.2 to 0.3
Breaking0.2.0 → 0.3.0Breaking2New2Other1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- The counter interface is no longer part of this package, so code using it must be updated.
- These methods now report whether the operation succeeded instead of returning nothing.
Must act 2 items need code or config changes
What you must change
Breaking2
Removes CounterInterface from the specification.
CounterInterfaceChanges delete, clear and deleteMultiple to return a boolean success status.
deletecleardeleteMultipleAPI changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
interface CounterInterface - removed:
method CounterInterface.decrement($key, $step = …) - removed:
method CounterInterface.increment($key, $step = …) - changed:
method CacheInterface.getMultiple($keys) → method CacheInterface.getMultiple($keys, $default = …) - changed:
method CacheInterface.setMultiple($items, $ttl = …) → method CacheInterface.setMultiple($values, $ttl = …) - added:
interface CacheException - added:
interface InvalidArgumentException extends CacheException