Files
cycle_api/app/Cache/Key/TronKeyCache.php
2024-03-25 06:15:36 +08:00

24 lines
458 B
PHP

<?php
namespace App\Cache\Key;
use App\Cache\Base\KeyBaseCache;
class TronKeyCache extends KeyBaseCache
{
protected string $prefix = 'WalletTronKeyCache:'; //缓存前缀
const NOW_BLOCK = 'nowBlock'; //当前区块
function setNowBlock(string $block): bool
{
return $this->setKey(self::NOW_BLOCK, $block);
}
function getNowBlock(): bool|array|string|null
{
return $this->getByKey(self::NOW_BLOCK);
}
}