判断一个给定的值是否在集合中存在
<p><strong>简要描述:</strong> </p>
<ul>
<li>判断一个给定的值是否在集合中存在</li>
</ul>
<p><strong>入参:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">key</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>存储redis中的唯一标识</td>
</tr>
<tr>
<td style="text-align: left;">member</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>要判断的值</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
true
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">无</td>
<td style="text-align: left;">boolean</td>
<td>是否存在(true/false)</td>
</tr>
</tbody>
</table>
<p><strong>示例代码</strong></p>
<pre><code class="language-java">IRedisService redisService = ICacheUtil.service();
boolean bl = redisService.sismember("user","erin");
System.out.println("bl:"+bl);</code></pre>
<p><strong>接口</strong></p>
<pre><code class="language-java">/*
* sismember 确定一个给定的值是否存在
* @param String member 要判断的值
* @return 存在返回1,不存在返回0
*/
public boolean sismember(String key,String member)throws CacheException;</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>存在返回true,不存在返回false</li>
</ul>