Upgrade to 3.2.5
This commit is contained in:
@@ -15,7 +15,6 @@ use APCUIterator;
|
||||
*/
|
||||
class ApcuCache extends Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* Determines if an item exists in the cache
|
||||
*
|
||||
@@ -59,7 +58,7 @@ class ApcuCache extends Cache
|
||||
* needs to return a Value object or null if not found
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
public function retrieve(string $key)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace Kirby\Cache;
|
||||
*/
|
||||
abstract class Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* Stores all options for the driver
|
||||
* @var array
|
||||
@@ -71,7 +70,7 @@ abstract class Cache
|
||||
* this needs to be defined by the driver
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
abstract public function retrieve(string $key);
|
||||
|
||||
@@ -96,7 +95,7 @@ abstract class Cache
|
||||
$value = $this->retrieve($key);
|
||||
|
||||
// check for a valid cache value
|
||||
if (!is_a($value, Value::class)) {
|
||||
if (!is_a($value, 'Kirby\Cache\Value')) {
|
||||
return $default;
|
||||
}
|
||||
|
||||
@@ -141,7 +140,7 @@ abstract class Cache
|
||||
$value = $this->retrieve($key);
|
||||
|
||||
// check for a valid Value object
|
||||
if (!is_a($value, Value::class)) {
|
||||
if (!is_a($value, 'Kirby\Cache\Value')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -182,7 +181,7 @@ abstract class Cache
|
||||
$value = $this->retrieve($key);
|
||||
|
||||
// check for a valid Value object
|
||||
if (!is_a($value, Value::class)) {
|
||||
if (!is_a($value, 'Kirby\Cache\Value')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ use Kirby\Toolkit\F;
|
||||
*/
|
||||
class FileCache extends Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* Full root including prefix
|
||||
* @var string
|
||||
@@ -93,7 +92,7 @@ class FileCache extends Cache
|
||||
* needs to return a Value object or null if not found
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
public function retrieve(string $key)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Kirby\Cache;
|
||||
*/
|
||||
class MemCached extends Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* store for the memache connection
|
||||
* @var Memcached
|
||||
@@ -65,7 +64,7 @@ class MemCached extends Cache
|
||||
* needs to return a Value object or null if not found
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
public function retrieve(string $key)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Kirby\Cache;
|
||||
*/
|
||||
class MemoryCache extends Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* Cache data
|
||||
* @var array
|
||||
@@ -45,7 +44,7 @@ class MemoryCache extends Cache
|
||||
* needs to return a Value object or null if not found
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
public function retrieve(string $key)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Kirby\Cache;
|
||||
*/
|
||||
class NullCache extends Cache
|
||||
{
|
||||
|
||||
/**
|
||||
* Writes an item to the cache for a given number of minutes and
|
||||
* returns whether the operation was successful
|
||||
@@ -38,7 +37,7 @@ class NullCache extends Cache
|
||||
* needs to return a Value object or null if not found
|
||||
*
|
||||
* @param string $key
|
||||
* @return Kirby\Cache\Value|null
|
||||
* @return \Kirby\Cache\Value|null
|
||||
*/
|
||||
public function retrieve(string $key)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@ use Throwable;
|
||||
*/
|
||||
class Value
|
||||
{
|
||||
|
||||
/**
|
||||
* Cached value
|
||||
* @var mixed
|
||||
|
||||
Reference in New Issue
Block a user