代码拉取完成,页面将自动刷新
同步操作将从 Monkey/Flasher 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Flasher基于Redis Cluster 3.0集群服务器(5.0版本加群获取)开发的一套Java客户端
<dependency>
<groupId>com.tl.flasher</groupId>
<artifactId>flasher</artifactId>
<version>0.0.5-snapshots</version>
</dependency>
<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxTotal" value="500" />
<property name="maxIdle" value="100" />
<property name="minIdle" value="10" />
<property name="maxWaitMillis" value="2000" />
<property name="testOnBorrow" value="true" />
</bean>
<bean id="redisClusterConnectionFactory"
class="com.tl.flasher.spring.RedisClusterConnectionFactory">
<property name="jedisPoolConfig" ref="jedisPoolConfig"></property>
<property name="hostPort" value="192.168.0.31:7000,192.168.0.31:7001,192.168.0.32:7000,192.168.0.32:7001,192.168.0.33:7000,192.168.0.33:7001"/>
</bean>
<bean id="redisCluster"
class="com.tl.flasher.impl.RedisClusterImpl">
<constructor-arg index="0" ref="redisClusterConnectionFactory" />
</bean>
<!--上报监控的数据-->
<bean id="monitorService" class="com.tl.flasher.monitor.MonitorService">
<property name="url" value="http://127.0.0.1:8080/monitor"/>
<property name="protocol" ref="protocol"/>
</bean>
<bean id="protocol" class="com.tl.flasher.monitor.protocol.falcon.FalconProtocol">
<property name="endpoint" value="redis-cluster"/>
</bean>
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/application-tlcache.xml"})
public class TlCache {
@Autowired
IRedis iredis;
@Test
public void testKey(){
iredis.set("trade", "monkey" , "2019");
iredis.get("trade","monkey"));
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。