diff --git a/laravel/cache/drivers/memcached.php b/laravel/cache/drivers/memcached.php index d6fdf310..d7a7e5d7 100644 --- a/laravel/cache/drivers/memcached.php +++ b/laravel/cache/drivers/memcached.php @@ -1,6 +1,6 @@ section_id($section).'#'.$key; } - /** - * Indicates if a key is sectionable. - * - * @param string $key - * @return bool - */ - protected function sectionable($key) - { - return $this->implicit and $this->sectioned($key); - } - - /** - * Determine if a key is sectioned. - * - * @param string $key - * @return bool - */ - protected function sectioned($key) - { - return str_contains($key, '::'); - } - - /** - * Get the section and key from a sectioned key. - * - * @param string $key - * @return array - */ - protected function parse($key) - { - return explode('::', $key, 2); - } - } \ No newline at end of file diff --git a/laravel/cache/drivers/memory.php b/laravel/cache/drivers/memory.php index 7893b0ef..8dcdd0e4 100644 --- a/laravel/cache/drivers/memory.php +++ b/laravel/cache/drivers/memory.php @@ -1,6 +1,6 @@ implicit and $this->sectioned($key); + } + + /** + * Determine if a key is sectioned. + * + * @param string $key + * @return bool + */ + protected function sectioned($key) + { + return str_contains($key, '::'); + } + + /** + * Get the section and key from a sectioned key. + * + * @param string $key + * @return array + */ + protected function parse($key) + { + return explode('::', $key, 2); + } } \ No newline at end of file