<?php
namespace App\Utils;
use Hyperf\Context\ApplicationContext;
use Psr\SimpleCache\CacheInterface;
trait Cache
{
public static function cache(): CacheInterface
return ApplicationContext::getContainer()->get(CacheInterface::class);
}