hyperf-chat/app/Cache/Contracts/ZSetRedisInterface.php

27 lines
575 B
PHP
Raw Normal View History

2021-05-20 16:53:34 +08:00
<?php
namespace App\Cache\Contracts;
interface ZSetRedisInterface
{
public function add(string $member, float $score);
public function rem(string ...$member);
public function incr(string $member, float $score);
public function isMember(string $member);
public function count();
public function all($asc = true, $is_score = true);
public function rank($page = 1, $size = 10, $asc = true);
public function getMemberRank(string $member, $asc = true);
public function getMemberScore(string $member);
2021-05-20 16:58:56 +08:00
public function delete();
2021-05-20 16:53:34 +08:00
}