ライブラリ側が完了+キャッシュは「validate」→「resurrect」に名変更
This commit is contained in:
@@ -108,7 +108,7 @@ class Cache {
|
||||
* @param string $dataPoint デフォルト=query
|
||||
* @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)));
|
||||
else return (!empty($cache)
|
||||
&& (isset($cache[$dataPoint])
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user