feat: spu
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user