feat: spu

This commit is contained in:
2025-01-22 11:04:12 +08:00
parent 2beb8d9e55
commit 9b7390129d
10 changed files with 426 additions and 10 deletions

View File

@@ -46,8 +46,16 @@ class CycleCache
}
}
// public function getCycleCache(string $key)
// {
// $this->redis->zScore()
// }
/**
* @param string $date
* @return bool|float|\Redis
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getCycleCache(string $date): float|bool|\Redis
{
$key = CommonRedisKey::getCycleList();
return $this->redis->zScore($key,$date,RedisCode::SYSTEM_DB);
}
}