public final class BitmapHandler extends Object implements RedisHandler
Modifier and Type | Method and Description |
---|---|
String |
binary(String key)
二进制
|
List<Long> |
bitField(String key,
org.springframework.data.redis.connection.BitFieldSubCommands commands)
多位操作
|
Long |
bitLength(String key)
位长度
|
Long |
bitOpWithAnd(String storeKey,
String... keys)
逻辑与
|
Long |
bitOpWithNot(String storeKey,
String key)
逻辑非
|
Long |
bitOpWithOr(String storeKey,
String... keys)
逻辑或
|
Long |
bitOpWithXor(String storeKey,
String... keys)
逻辑异或
|
Long |
count(String key)
统计
|
Long |
count(String key,
Long startIndex,
Long endIndex)
统计
|
Boolean |
get(String key,
Long offset)
获取位
|
org.springframework.data.redis.core.StringRedisTemplate |
getStringRedisTemplate()
获取spring string redis模板
|
Long |
position(String key,
boolean bit)
定位
|
Long |
position(String key,
boolean bit,
Long startIndex,
Long endIndex)
定位
|
Long |
remove(String... keys)
移除字符串
|
Boolean |
set(String key,
Long offset,
boolean bit)
设置位
|
public Boolean set(String key, Long offset, boolean bit)
key
- 键offset
- 偏移量bit
- 位值,true=1,false=0public Boolean get(String key, Long offset)
key
- 键offset
- 偏移量public Long bitLength(String key)
key
- 键public String binary(String key)
key
- 键public Long count(String key)
key
- 键public Long count(String key, Long startIndex, Long endIndex)
key
- 键startIndex
- 开始字节索引endIndex
- 结束字节索引public Long position(String key, boolean bit)
key
- 键bit
- 位值,true=1,false=0public Long position(String key, boolean bit, Long startIndex, Long endIndex)
key
- 键bit
- 位值,true=1,false=0startIndex
- 开始字节索引endIndex
- 结束字节索引public Long bitOpWithAnd(String storeKey, String... keys)
storeKey
- 存储键keys
- 键public Long bitOpWithOr(String storeKey, String... keys)
storeKey
- 存储键keys
- 键public Long bitOpWithXor(String storeKey, String... keys)
storeKey
- 存储键keys
- 键public Long bitOpWithNot(String storeKey, String key)
storeKey
- 存储键key
- 键public List<Long> bitField(String key, org.springframework.data.redis.connection.BitFieldSubCommands commands)
key
- 键commands
- 指令public Long remove(String... keys)
keys
- 键public org.springframework.data.redis.core.StringRedisTemplate getStringRedisTemplate()
Copyright © 2019. All rights reserved.