From b510643f52e33269527bfa53fded498360fdaafc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 22 Jan 2019 19:20:26 -0800 Subject: [PATCH] ArrayCache::getExpires() - Add helper for unit testing --- CRM/Utils/Cache/ArrayCache.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CRM/Utils/Cache/ArrayCache.php b/CRM/Utils/Cache/ArrayCache.php index c2a313af03..eb134d136f 100644 --- a/CRM/Utils/Cache/ArrayCache.php +++ b/CRM/Utils/Cache/ArrayCache.php @@ -121,4 +121,12 @@ class CRM_Utils_Cache_Arraycache implements CRM_Utils_Cache_Interface { return is_object($value) ? unserialize(serialize($value)) : $value; } + /** + * @param string $key + * @return int|null + */ + public function getExpires($key) { + return $this->_expires[$key] ?: NULL; + } + } -- 2.25.1