}
}
+ /**
+ * Memcache doesn't allow spaces in keys
+ *
+ * @param string $key
+ * @return string
+ */
+ protected function getCacheKey(string $key): string
+ {
+ return str_replace(' ', '_', parent::getCacheKey($key));
+ }
+
/**
* (@inheritdoc)
*/
}
}
+ /**
+ * Memcached doesn't allow spaces in keys
+ *
+ * @param string $key
+ * @return string
+ */
+ protected function getCacheKey(string $key): string
+ {
+ return str_replace(' ', '_', parent::getCacheKey($key));
+ }
+
/**
* (@inheritdoc)
*/
* cache or it is empty
*
* @param string $owner_nick Nickname of the feed owner
- * @param string $last_update Date of the last update
+ * @param string $last_update Date of the last update (in "Y-m-d H:i:s" format)
* @param integer $max_items Number of maximum items to fetch
* @param string $filter Feed items filter (activity, posts or comments)
* @param boolean $nocache Wether to bypass caching
self::assertNotContains('value1', $list);
self::assertNotContains('value2', $list);
}
+
+ /**
+ * @small
+ */
+ public function testSpaceInKey()
+ {
+ self::assertTrue($this->instance->set('key space', 'value'));
+ self::assertEquals('value', $this->instance->get('key space'));
+ }
}