public class DefaultBoundOperationsX<HK,HV> extends Object implements IBoundOperationsX, IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultBoundOperationsX(String key,
org.springframework.data.redis.core.RedisOperations<String,?> operations,
IKeyNamingPolicy keyNamingPolicy)
Constructs a new
DefaultBoundHashOperations instance. |
| Modifier and Type | Method and Description |
|---|---|
Long |
delete(Object... arg0) |
Map<HK,HV> |
entries() |
Boolean |
expire(long arg0,
TimeUnit arg1) |
Boolean |
expireAt(Date arg0) |
HV |
get(Object arg0) |
Long |
getExpire() |
K |
getKey() |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<H,?> |
getOperations() |
String |
getOriginKey()
Get origin Key
|
org.springframework.data.redis.connection.DataType |
getType() |
Boolean |
hasKey(Object arg0) |
Double |
increment(HK arg0,
double arg1) |
Long |
increment(HK arg0,
long arg1) |
Set<HK> |
keys() |
Long |
lengthOfValue(HK arg0) |
List<HV> |
multiGet(Collection<HK> arg0) |
Boolean |
persist() |
void |
put(HK arg0,
HV arg1) |
void |
putAll(Map<? extends HK,? extends HV> arg0) |
Boolean |
putIfAbsent(HK arg0,
HV arg1) |
void |
rename(String newKey) |
org.springframework.data.redis.core.Cursor<Map.Entry<HK,HV>> |
scan(org.springframework.data.redis.core.ScanOptions arg0) |
Long |
size() |
List<HV> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultBoundOperationsX(String key, org.springframework.data.redis.core.RedisOperations<String,?> operations, IKeyNamingPolicy keyNamingPolicy)
DefaultBoundHashOperations instance.key - operations - keyNamingPolicy - key naming policypublic String getOriginKey()
getOriginKey in interface IBoundOperationsXpublic void rename(String newKey)
rename in interface org.springframework.data.redis.core.BoundKeyOperations<String>public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic Long delete(Object... arg0)
delete in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public HV get(Object arg0)
get in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public List<HV> multiGet(Collection<HK> arg0)
multiGet in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public org.springframework.data.redis.core.RedisOperations<H,?> getOperations()
getOperations in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Boolean hasKey(Object arg0)
hasKey in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Long increment(HK arg0, long arg1)
increment in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Double increment(HK arg0, double arg1)
increment in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Set<HK> keys()
keys in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>@Nullable public Long lengthOfValue(HK arg0)
lengthOfValue in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Long size()
size in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public void putAll(Map<? extends HK,? extends HV> arg0)
putAll in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public void put(HK arg0,
HV arg1)
put in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Boolean putIfAbsent(HK arg0, HV arg1)
putIfAbsent in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public List<HV> values()
values in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public Map<HK,HV> entries()
entries in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public org.springframework.data.redis.connection.DataType getType()
getType in interface org.springframework.data.redis.core.BoundKeyOperations<H>public org.springframework.data.redis.core.Cursor<Map.Entry<HK,HV>> scan(org.springframework.data.redis.core.ScanOptions arg0)
scan in interface org.springframework.data.redis.core.BoundHashOperations<H,HK,HV>public K getKey()
getKey in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expire(long arg0, TimeUnit arg1)
expire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expireAt(Date arg0)
expireAt in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Long getExpire()
getExpire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean persist()
persist in interface org.springframework.data.redis.core.BoundKeyOperations<K>Copyright © 2020. All rights reserved.