(dev/core#174) CRM_Utils_Cache_Interface::flush() - Return bool like PSR-16
authorTim Otten <totten@civicrm.org>
Tue, 19 Jun 2018 23:06:26 +0000 (16:06 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 27 Jun 2018 21:29:52 +0000 (14:29 -0700)
commit124e528803354a61daf3f280ab282c4391e9e9bb
tree6bfe9fa5ed55679c69bca27412a562be24c8b2e9
parent0d64c8fa3bce8e62d8f62d22bacdc00a1161d6df
(dev/core#174) CRM_Utils_Cache_Interface::flush() - Return bool like PSR-16

The function signature for `flush()` did not specify a return value, and
actual behaviors varied depending on the driver (`bool` for memcache,
`int` for redis, and `void` for others).

This standardizes on returning a bool -- which makes the signature align
with PSR-16's `clear()`.
CRM/Utils/Cache/APCcache.php
CRM/Utils/Cache/ArrayCache.php
CRM/Utils/Cache/Interface.php
CRM/Utils/Cache/Memcache.php
CRM/Utils/Cache/Memcached.php
CRM/Utils/Cache/Redis.php
CRM/Utils/Cache/SerializeCache.php
CRM/Utils/Cache/SqlGroup.php