mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
6254b8593e
* refactor(cache): extract and encapsulate cache expiration logic * fix: logic bug in getSimpleHTMLDOMCached * fix: silly me, index should of course be on the key column * silly me again, PRIMARY keys get index by default lol * comment out the delete portion in loadData * remove a few log statements * tweak twitter cache timeout
31 lines
460 B
PHP
31 lines
460 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
class NullCache implements CacheInterface
|
|
{
|
|
public function setScope(string $scope): void
|
|
{
|
|
}
|
|
|
|
public function setKey(array $key): void
|
|
{
|
|
}
|
|
|
|
public function loadData(int $timeout = 86400)
|
|
{
|
|
}
|
|
|
|
public function saveData($data): void
|
|
{
|
|
}
|
|
|
|
public function getTime(): ?int
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function purgeCache(int $timeout = 86400): void
|
|
{
|
|
}
|
|
}
|