public class DefaultBoundValueOperationsX<V> extends Object implements IBoundOperationsX, IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultBoundValueOperationsX(String key,
org.springframework.data.redis.core.RedisOperations<String,V> operations,
IKeyNamingPolicy keyNamingPolicy)
Constructs a new
DefaultBoundValueOperations instance. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
append(String arg0) |
Long |
decrement() |
Long |
decrement(long arg0) |
Boolean |
expire(long arg0,
TimeUnit arg1) |
Boolean |
expireAt(Date arg0) |
V |
get() |
String |
get(long arg0,
long arg1) |
V |
getAndSet(V arg0) |
Long |
getExpire() |
K |
getKey() |
String |
getKeyName(String key)
Get naming key
|
org.springframework.data.redis.core.RedisOperations<K,V> |
getOperations() |
String |
getOriginKey()
Get origin Key
|
org.springframework.data.redis.connection.DataType |
getType() |
Long |
increment() |
Double |
increment(double arg0) |
Long |
increment(long arg0) |
Boolean |
persist() |
void |
rename(String newKey) |
void |
set(V arg0) |
void |
set(V arg0,
long arg1) |
void |
set(V arg0,
long arg1,
TimeUnit arg2) |
Boolean |
setIfAbsent(V arg0) |
Boolean |
setIfAbsent(V arg0,
long arg1,
TimeUnit arg2) |
Boolean |
setIfPresent(V arg0) |
Boolean |
setIfPresent(V arg0,
long arg1,
TimeUnit arg2) |
Long |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultBoundValueOperationsX(String key, org.springframework.data.redis.core.RedisOperations<String,V> operations, IKeyNamingPolicy keyNamingPolicy)
DefaultBoundValueOperations 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 V get()
get in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public V getAndSet(V arg0)
getAndSet in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Long increment()
increment in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Long increment(long arg0)
increment in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Double increment(double arg0)
increment in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Long decrement()
decrement in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Long decrement(long arg0)
decrement in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Integer append(String arg0)
append in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public String get(long arg0, long arg1)
get in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public void set(V arg0,
long arg1,
TimeUnit arg2)
set in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public void set(V arg0)
set in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Boolean setIfAbsent(V arg0)
setIfAbsent in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Boolean setIfAbsent(V arg0, long arg1, TimeUnit arg2)
setIfAbsent in interface org.springframework.data.redis.core.BoundValueOperations<K,V>@Nullable public Boolean setIfPresent(V arg0)
setIfPresent in interface org.springframework.data.redis.core.BoundValueOperations<K,V>@Nullable public Boolean setIfPresent(V arg0, long arg1, TimeUnit arg2)
setIfPresent in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public void set(V arg0,
long arg1)
set in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public Long size()
size in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
getOperations in interface org.springframework.data.redis.core.BoundValueOperations<K,V>public org.springframework.data.redis.connection.DataType getType()
getType in interface org.springframework.data.redis.core.BoundKeyOperations<K>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.