aboutsummaryrefslogtreecommitdiffstats
path: root/src/Cache/Memcache.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache/Memcache.php')
-rw-r--r--src/Cache/Memcache.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Cache/Memcache.php b/src/Cache/Memcache.php
index 36cf4b7..aeabd51 100644
--- a/src/Cache/Memcache.php
+++ b/src/Cache/Memcache.php
@@ -1,4 +1,6 @@
<?php
+
+declare(strict_types=1);
/**
* SimplePie
*
@@ -57,6 +59,7 @@ use Memcache as NativeMemcache;
* @package SimplePie
* @subpackage Caching
* @uses Memcache
+ * @deprecated since SimplePie 1.8.0, use implementation of "Psr\SimpleCache\CacheInterface" instead
*/
class Memcache implements Base
{
@@ -86,7 +89,7 @@ class Memcache implements Base
*
* @param string $location Location string (from SimplePie::$cache_location)
* @param string $name Unique ID for the cache
- * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
+ * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
*/
public function __construct($location, $name, $type)
{
@@ -98,7 +101,7 @@ class Memcache implements Base
'prefix' => 'simplepie_',
],
];
- $this->options = \SimplePie\Misc::array_merge_recursive($this->options, \SimplePie\Cache::parse_URL($location));
+ $this->options = array_replace_recursive($this->options, \SimplePie\Cache::parse_URL($location));
$this->name = $this->options['extras']['prefix'] . md5("$name:$type");
@@ -109,7 +112,7 @@ class Memcache implements Base
/**
* Save data to the cache
*
- * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
+ * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
* @return bool Successfulness
*/
public function save($data)