Skip to content

Upgrading psr/simple-cache 0.2 to 0.3

Breaking0.2.0 → 0.3.0Breaking2New2Other1

BreakingUpgrade verdict

2 breaking changes.

  • 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.
2 items need code or config changes
Breaking2
Removes CounterInterface from the specification.
CounterInterface
Changes delete, clear and deleteMultiple to return a boolean success status.
deletecleardeleteMultiple

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