public class DefaultBoundListOperationsX<V> extends Object implements IBoundOperationsX, IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultBoundListOperationsX(String key,
org.springframework.data.redis.core.RedisOperations<String,V> operations,
IKeyNamingPolicy keyNamingPolicy)
Constructs a new
DefaultBoundListOperations instance. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
expire(long arg0,
TimeUnit arg1) |
Boolean |
expireAt(Date 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() |
V |
index(long arg0) |
V |
leftPop() |
V |
leftPop(long arg0,
TimeUnit arg1) |
Long |
leftPush(V arg0) |
Long |
leftPush(V arg0,
V arg1) |
Long |
leftPushAll(V... arg0) |
Long |
leftPushIfPresent(V arg0) |
Boolean |
persist() |
List<V> |
range(long arg0,
long arg1) |
Long |
remove(long arg0,
Object arg1) |
void |
rename(String newKey) |
V |
rightPop() |
V |
rightPop(long arg0,
TimeUnit arg1) |
Long |
rightPush(V arg0) |
Long |
rightPush(V arg0,
V arg1) |
Long |
rightPushAll(V... arg0) |
Long |
rightPushIfPresent(V arg0) |
void |
set(long arg0,
V arg1) |
Long |
size() |
void |
trim(long arg0,
long arg1) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultBoundListOperationsX(String key, org.springframework.data.redis.core.RedisOperations<String,V> operations, IKeyNamingPolicy keyNamingPolicy)
DefaultBoundListOperations instance.key - operations - keyNamingPolicy - public void rename(String newKey)
rename in interface org.springframework.data.redis.core.BoundKeyOperations<String>public String getOriginKey()
getOriginKey in interface IBoundOperationsXpublic String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic org.springframework.data.redis.core.RedisOperations<K,V> getOperations()
getOperations in interface org.springframework.data.redis.core.BoundListOperations<K,V>public V index(long arg0)
index in interface org.springframework.data.redis.core.BoundListOperations<K,V>public V leftPop()
leftPop in interface org.springframework.data.redis.core.BoundListOperations<K,V>public V leftPop(long arg0,
TimeUnit arg1)
leftPop in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long leftPush(V arg0)
leftPush in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long leftPushAll(V... arg0)
leftPushAll in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long leftPushIfPresent(V arg0)
leftPushIfPresent in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long leftPush(V arg0, V arg1)
leftPush in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long size()
size in interface org.springframework.data.redis.core.BoundListOperations<K,V>public List<V> range(long arg0, long arg1)
range in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long remove(long arg0, Object arg1)
remove in interface org.springframework.data.redis.core.BoundListOperations<K,V>public V rightPop()
rightPop in interface org.springframework.data.redis.core.BoundListOperations<K,V>public V rightPop(long arg0,
TimeUnit arg1)
rightPop in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long rightPushIfPresent(V arg0)
rightPushIfPresent in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long rightPush(V arg0)
rightPush in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long rightPushAll(V... arg0)
rightPushAll in interface org.springframework.data.redis.core.BoundListOperations<K,V>public Long rightPush(V arg0, V arg1)
rightPush in interface org.springframework.data.redis.core.BoundListOperations<K,V>public void trim(long arg0,
long arg1)
trim in interface org.springframework.data.redis.core.BoundListOperations<K,V>public void set(long arg0,
V arg1)
set in interface org.springframework.data.redis.core.BoundListOperations<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.