删除:多余的 redis 插件模块
This commit is contained in:
parent
4a7b6c33e4
commit
7e0351cfc6
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
|
||||||
* To change this template file, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package org.redkalex.cache.redis.lettuce;
|
|
||||||
|
|
||||||
import org.redkale.annotation.Priority;
|
|
||||||
import org.redkale.source.CacheSource;
|
|
||||||
import org.redkale.source.CacheSourceProvider;
|
|
||||||
import org.redkale.util.AnyValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author zhangjx
|
|
||||||
*/
|
|
||||||
@Priority(-100)
|
|
||||||
public class RedisLettuceCacheSourceProvider implements CacheSourceProvider {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean acceptsConf(AnyValue config) {
|
|
||||||
try {
|
|
||||||
Object.class.isAssignableFrom(io.lettuce.core.support.BoundedPoolConfig.class); //试图加载Lettuce相关类
|
|
||||||
return new RedisLettuceCacheSource().acceptsConf(config);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public CacheSource createInstance() {
|
|
||||||
return new RedisLettuceCacheSource();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
|
||||||
* To change this template file, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package org.redkalex.cache.redis.redission;
|
|
||||||
|
|
||||||
import org.redkale.annotation.Priority;
|
|
||||||
import org.redkale.source.CacheSource;
|
|
||||||
import org.redkale.source.CacheSourceProvider;
|
|
||||||
import org.redkale.util.AnyValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author zhangjx
|
|
||||||
*/
|
|
||||||
@Priority(-300)
|
|
||||||
public class RedissionCacheSourceProvider implements CacheSourceProvider {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean acceptsConf(AnyValue config) {
|
|
||||||
try {
|
|
||||||
Object.class.isAssignableFrom(org.redisson.config.Config.class); //试图加载Redission相关类
|
|
||||||
return new RedissionCacheSource().acceptsConf(config);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public CacheSource createInstance() {
|
|
||||||
return new RedissionCacheSource();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,32 +0,0 @@
|
|||||||
/*
|
|
||||||
*/
|
|
||||||
package org.redkalex.cache.redis.vertx;
|
|
||||||
|
|
||||||
import org.redkale.annotation.Priority;
|
|
||||||
import org.redkale.source.CacheSource;
|
|
||||||
import org.redkale.source.CacheSourceProvider;
|
|
||||||
import org.redkale.util.AnyValue;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author zhangjx
|
|
||||||
*/
|
|
||||||
@Priority(-200)
|
|
||||||
public class RedisVertxCacheSourceProvider implements CacheSourceProvider {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean acceptsConf(AnyValue config) {
|
|
||||||
try {
|
|
||||||
Object.class.isAssignableFrom(io.vertx.redis.client.RedisOptions.class); //试图加载vertx-redis相关类
|
|
||||||
return new RedisVertxCacheSource().acceptsConf(config);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public CacheSource createInstance() {
|
|
||||||
return new RedisVertxCacheSource();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user