2021-05-20 16:53:34 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Cache\Contracts;
|
|
|
|
|
|
|
|
interface HashRedisInterface
|
|
|
|
{
|
|
|
|
public function get(string ...$key);
|
|
|
|
|
|
|
|
public function add(string $key, string $value);
|
|
|
|
|
|
|
|
public function rem(string ...$key);
|
|
|
|
|
|
|
|
public function incr(string $member, int $score);
|
|
|
|
|
|
|
|
public function count();
|
|
|
|
|
|
|
|
public function all();
|
|
|
|
|
|
|
|
public function isMember(string $key);
|
|
|
|
|
2021-05-20 16:58:56 +08:00
|
|
|
public function delete();
|
2021-05-20 16:53:34 +08:00
|
|
|
}
|
|
|
|
|