18 lines
477 B
PHP
18 lines
477 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Storage;
|
|
|
|
use Hyperf\RateLimit\Storage\StorageInterface;
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
class MemoryTableStorage implements StorageInterface
|
|
{
|
|
|
|
// @TODO 使用 https://wiki.swoole.com/zh-cn/#/memory/table 创建限流的缓存系统
|
|
public function __construct(ContainerInterface $container, string $key, int $timeout, array $options = [])
|
|
{
|
|
throw new \Exception('Not implemented');
|
|
}
|
|
} |