refactoring

pull/6120/head
Nikita Koksharov 6 months ago
parent fd03ff19a1
commit c931831a63

@ -110,7 +110,7 @@ public abstract class RedissonMultimap<K, V> extends RedissonExpirable implement
return new RedissonReadWriteLock(commandExecutor, lockName);
}
protected String hash(ByteBuf objectState) {
String hash(ByteBuf objectState) {
return Hash.hash128toBase64(objectState);
}

@ -45,9 +45,6 @@ public class RedissonSetMultimapCache<K, V> extends RedissonSetMultimap<K, V> im
public RedissonSetMultimapCache(EvictionScheduler evictionScheduler, Codec codec, CommandAsyncExecutor connectionManager, String name) {
super(codec, connectionManager, name);
if (evictionScheduler != null) {
evictionScheduler.scheduleCleanMultimap(name, getTimeoutSetName());
}
baseCache = new RedissonMultimapCache<>(connectionManager, evictionScheduler, this, getTimeoutSetName(), prefix);
}

@ -23,6 +23,6 @@ package org.redisson.api;
* @param <K> key
* @param <V> value
*/
public interface RListMultimapCache<K, V> extends RListMultimap<K, V>, RMultimapCache<K, V> {
public interface RListMultimapCache<K, V> extends RListMultimap<K, V>, RMultimapCache<K, V>, RDestroyable {
}

@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
* @param <K> key type
* @param <V> value type
*/
public interface RMultimapCache<K, V> extends RMultimap<K, V>, RMultimapCacheAsync<K, V>, RDestroyable {
public interface RMultimapCache<K, V> extends RMultimap<K, V>, RMultimapCacheAsync<K, V> {
/**
* Set a timeout for key. After the timeout has expired,

@ -22,6 +22,6 @@ package org.redisson.api;
* @param <K> key type
* @param <V> value type
*/
public interface RSetMultimapCache<K, V> extends RSetMultimap<K, V>, RMultimapCache<K, V> {
public interface RSetMultimapCache<K, V> extends RSetMultimap<K, V>, RMultimapCache<K, V>, RDestroyable {
}

Loading…
Cancel
Save