ライブラリ側が完了+キャッシュは「validate」→「resurrect」に名変更

This commit is contained in:
2026-05-01 16:27:56 +09:00
parent 3879ffcc8e
commit 2570955b4e
2 changed files with 825 additions and 33 deletions

View File

@@ -108,7 +108,7 @@ class Cache {
* @param string $dataPoint デフォルトquery * @param string $dataPoint デフォルトquery
* @return bool * @return bool
*/ */
public function validate(array $cache, mixed $data = null, string $dataPoint = 'query'): bool { public function resurrect(array $cache, mixed $data = null, string $dataPoint = 'query'): bool {
if (NULL === $data) return (!empty($cache) && (isset($cache['lifespan']) && time() < ($cache['lifespan'] + $this->dataDuration))); if (NULL === $data) return (!empty($cache) && (isset($cache['lifespan']) && time() < ($cache['lifespan'] + $this->dataDuration)));
else return (!empty($cache) else return (!empty($cache)
&& (isset($cache[$dataPoint]) && (isset($cache[$dataPoint])

File diff suppressed because it is too large Load Diff