first commit

This commit is contained in:
2023-04-15 23:29:27 +08:00
commit 2d9ac93a7a
71 changed files with 4592 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
namespace Kiri\Message\Handler;
/**
* Interface AuthorizationInterface
* @package Kiri\Http
*/
interface AuthorizationInterface
{
/**
* @return string|int
* 获取唯一识别码
*/
public function getUniqueId(): string|int;
/**
* @param string $key
* @param int $timeout
* @return bool
*/
public function lock(string $key, int $timeout): bool;
/**
* @param string $key
* @return bool
*/
public function unlock(string $key): bool;
}