2021-05-20 16:53:34 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Cache\Contracts;
|
|
|
|
|
|
|
|
interface LockRedisInterface
|
|
|
|
{
|
2021-05-25 18:20:55 +08:00
|
|
|
public function lock(string $key, $expired = 1, int $timeout = 0);
|
2021-05-20 16:53:34 +08:00
|
|
|
|
|
|
|
public function delete(string $key);
|
|
|
|
}
|