我在 RedisPlugin 初始化时传入了 database,但是在后续的Redis.use().get()/set()时 发现操作的仍是 数据库 0,希望波总可以指点一下,谢谢
MyRedisPlugin wxToken = new MyRedisPlugin("wxToken", "localhost", 6379, 0, null, 1); me.add(wxToken); public class MyRedisPlugin extends RedisPlugin { public MyRedisPlugin(String cacheName, String host, int port, int timeout, String password) { super(cacheName, host, port, timeout); this.password = password; } public MyRedisPlugin(String cacheName, String host, int port, int timeout, String password, int database) { this(cacheName, host, port, timeout, password); this.database = database; } }
项目:JFinal