All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.spring-default-redis.xml Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

    <bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
        <property name="maxIdle" value="${redis_max_idle}"/>
        <property name="testOnBorrow" value="${redis_test_on_borrow}"/>
    </bean>

    <bean id="shardedJedisPool" class="redis.clients.jedis.ShardedJedisPool">
        <constructor-arg ref="jedisPoolConfig"/>
        <constructor-arg>
            <list>
                <bean class="redis.clients.jedis.JedisShardInfo">
                    <constructor-arg value="${redis_host}"/>
                    <constructor-arg value="${redis_port}"/>
                    <constructor-arg value="${redis_name}"/>
                </bean>
            </list>
        </constructor-arg>
    </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy