feat : cache Adapter

This commit is contained in:
2025-09-05 14:12:56 +08:00
parent 80ba5dcbf8
commit d43d38d820
7 changed files with 140 additions and 4 deletions

View File

@@ -11,15 +11,23 @@ declare(strict_types=1);
namespace App\Service\Test\Adapter;
use App\Interface\Test\Adapter\CacheInterface;
use App\Service\Test\TestBaseService;
use Hyperf\Di\Annotation\Inject;
class CacheService extends TestBaseService
{
/**
* @var CacheInterface
*/
#[Inject]
private CacheInterface $cache;
/**
* @return array
*/
public function handle(): array
{
return $this->return->success();
return $this->return->success('success',$this->cache->get('test_key'));
}
}