DATAKV-44
+ update persist signature
This commit is contained in:
@@ -69,8 +69,9 @@ public interface BoundKeyOperations<K> {
|
||||
|
||||
/**
|
||||
* Removes the expiration (if any) of the key.
|
||||
* @return true if expiration was removed, false otherwise
|
||||
*/
|
||||
void persist();
|
||||
Boolean persist();
|
||||
|
||||
/**
|
||||
* Renames the key.
|
||||
|
||||
@@ -60,8 +60,8 @@ abstract class DefaultBoundKeyOperations<K> implements BoundKeyOperations<K> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void persist() {
|
||||
ops.persist(key);
|
||||
public Boolean persist() {
|
||||
return ops.persist(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -281,8 +281,8 @@ public class RedisAtomicInteger extends Number implements Serializable, BoundKey
|
||||
}
|
||||
|
||||
@Override
|
||||
public void persist() {
|
||||
generalOps.persist(key);
|
||||
public Boolean persist() {
|
||||
return generalOps.persist(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -284,8 +284,8 @@ public class RedisAtomicLong extends Number implements Serializable, BoundKeyOpe
|
||||
}
|
||||
|
||||
@Override
|
||||
public void persist() {
|
||||
generalOps.persist(key);
|
||||
public Boolean persist() {
|
||||
return generalOps.persist(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -135,8 +135,8 @@ public abstract class AbstractRedisCollection<E> extends AbstractCollection<E> i
|
||||
}
|
||||
|
||||
@Override
|
||||
public void persist() {
|
||||
operations.persist(key);
|
||||
public Boolean persist() {
|
||||
return operations.persist(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -310,8 +310,8 @@ public class DefaultRedisMap<K, V> implements RedisMap<K, V> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void persist() {
|
||||
hashOps.persist();
|
||||
public Boolean persist() {
|
||||
return hashOps.persist();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user