From 6b6b5b08b084600ad7787e14b95d1ed570356455 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 14 Feb 2019 12:15:13 +0000 Subject: [PATCH] Issue #3031775 by singhkiran, Chi: Cache backend classes reference non-existing functions cache_get() and cache_get_multiple() --- core/lib/Drupal/Core/Cache/ApcuBackend.php | 2 +- core/lib/Drupal/Core/Cache/DatabaseBackend.php | 2 +- core/lib/Drupal/Core/Cache/MemoryBackend.php | 2 +- core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php | 2 +- core/lib/Drupal/Core/Cache/PhpBackend.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/lib/Drupal/Core/Cache/ApcuBackend.php b/core/lib/Drupal/Core/Cache/ApcuBackend.php index e04e0141523..56ff256b515 100644 --- a/core/lib/Drupal/Core/Cache/ApcuBackend.php +++ b/core/lib/Drupal/Core/Cache/ApcuBackend.php @@ -129,7 +129,7 @@ class ApcuBackend implements CacheBackendInterface { * Checks that the item is either permanent or did not expire. * * @param \stdClass $cache - * An item loaded from cache_get() or cache_get_multiple(). + * An item loaded from self::get() or self::getMultiple(). * @param bool $allow_invalid * If TRUE, a cache item may be returned even if it is expired or has been * invalidated. See ::get(). diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php index 88f018f8cc5..2a3a4f620c9 100644 --- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php +++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php @@ -135,7 +135,7 @@ class DatabaseBackend implements CacheBackendInterface { * data as appropriate. * * @param object $cache - * An item loaded from cache_get() or cache_get_multiple(). + * An item loaded from self::get() or self::getMultiple(). * @param bool $allow_invalid * If FALSE, the method returns FALSE if the cache item is not valid. * diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php index c1276923754..d402d70b543 100644 --- a/core/lib/Drupal/Core/Cache/MemoryBackend.php +++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php @@ -65,7 +65,7 @@ class MemoryBackend implements CacheBackendInterface, CacheTagsInvalidatorInterf * as appropriate. * * @param object $cache - * An item loaded from cache_get() or cache_get_multiple(). + * An item loaded from self::get() or self::getMultiple(). * @param bool $allow_invalid * (optional) If TRUE, cache items may be returned even if they have expired * or been invalidated. diff --git a/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php b/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php index 433edd22dc8..32711082115 100644 --- a/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php +++ b/core/lib/Drupal/Core/Cache/MemoryCache/MemoryCache.php @@ -21,7 +21,7 @@ class MemoryCache extends MemoryBackend implements MemoryCacheInterface { * as appropriate. * * @param object $cache - * An item loaded from cache_get() or cache_get_multiple(). + * An item loaded from self::get() or self::getMultiple(). * @param bool $allow_invalid * (optional) If TRUE, cache items may be returned even if they have expired * or been invalidated. Defaults to FALSE. diff --git a/core/lib/Drupal/Core/Cache/PhpBackend.php b/core/lib/Drupal/Core/Cache/PhpBackend.php index d3af7f58434..e7f57b799df 100644 --- a/core/lib/Drupal/Core/Cache/PhpBackend.php +++ b/core/lib/Drupal/Core/Cache/PhpBackend.php @@ -112,7 +112,7 @@ class PhpBackend implements CacheBackendInterface { * as appropriate. * * @param object $cache - * An item loaded from cache_get() or cache_get_multiple(). + * An item loaded from self::get() or self::getMultiple(). * @param bool $allow_invalid * If FALSE, the method returns FALSE if the cache item is not valid. *