diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
index a66b76d..b70e534 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/CachePluginBase.php
@@ -105,7 +105,7 @@ function cache_expire($type) { }
     * @param $type
     *   The cache type, either 'query', 'result' or 'output'.
     */
-  function cache_set_expire($type) {
+  public function cacheSetExpire($type) {
     return CacheBackendInterface::CACHE_PERMANENT;
   }
 
@@ -126,12 +126,12 @@ function cache_set($type) {
           'total_rows' => isset($this->view->total_rows) ? $this->view->total_rows : 0,
           'current_page' => $this->view->getCurrentPage(),
         );
-        cache($this->table)->set($this->generateResultsKey(), $data, $this->cache_set_expire($type));
+        cache($this->table)->set($this->generateResultsKey(), $data, $this->cacheSetExpire($type));
         break;
       case 'output':
         $this->storage['output'] = $this->view->display_handler->output;
         $this->gather_headers();
-        cache($this->table)->set($this->generateOutputKey(), $this->storage, $this->cache_set_expire($type));
+        cache($this->table)->set($this->generateOutputKey(), $this->storage, $this->cacheSetExpire($type));
         break;
     }
   }
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
index 537c40e..befd437 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
@@ -118,7 +118,7 @@ function cache_expire($type) {
     }
   }
 
-  function cache_set_expire($type) {
+  protected function cacheSetExpire($type) {
     $lifespan = $this->get_lifespan($type);
     if ($lifespan) {
       return time() + $lifespan;
