mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 13:38:41 +00:00
remove threshold
This commit is contained in:
parent
18d457efa6
commit
4d097b4589
|
|
@ -33,14 +33,6 @@ class MemCached extends ConnectionAbstract
|
||||||
*/
|
*/
|
||||||
protected string $type = CacheType::MEMCACHED;
|
protected string $type = CacheType::MEMCACHED;
|
||||||
|
|
||||||
/**
|
|
||||||
* Only cache if data is larger than threshold (0-100).
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private int $threshold = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
|
@ -183,14 +175,6 @@ class MemCached extends ConnectionAbstract
|
||||||
return $stats;
|
return $stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function getThreshold() : int
|
|
||||||
{
|
|
||||||
return $this->threshold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('', $this->cache->getPrefix());
|
self::assertEquals('', $this->cache->getPrefix());
|
||||||
self::assertEquals(CacheType::MEMCACHED, $this->cache->getType());
|
self::assertEquals(CacheType::MEMCACHED, $this->cache->getType());
|
||||||
self::assertTrue($this->cache->flushAll());
|
self::assertTrue($this->cache->flushAll());
|
||||||
self::assertEquals(50, $this->cache->getThreshold());
|
|
||||||
self::assertNull($this->cache->get('test'));
|
self::assertNull($this->cache->get('test'));
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user