首页 > 系统服务 > 详细

memCached的配置文件 配置

时间:2015-01-26 17:24:16      阅读:262      评论:0      收藏:0      [点我收藏+]

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

xmlns:p="http://www.springframework.org/schema/p"

xmlns:context="http://www.springframework.org/schema/context"

xsi:schemaLocation="

http://www.springframework.org/schema/beans 

http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

http://www.springframework.org/schema/context   

            http://www.springframework.org/schema/context/spring-context-3.0.xsd

    ">

    <context:component-scan base-package="com.ibs.gbplatform.common.memcached" />

    

<bean id="memCachedPool" class="com.whalin.memcached.SockIOPool"

factory-method="getInstance" init-method="initialize" destroy-method="shutDown">

<constructor-arg>

<value>memCachedPool</value>

</constructor-arg>

<property name="servers">

<list>

<value>127.0.0.1:11211</value>

</list>

</property>

<property name="initConn">

<value>20</value>

</property>


<property name="minConn">

<value>10</value>

</property>


<property name="maxConn">

<value>50</value>

</property>


<property name="maintSleep">

<value>3000</value>

</property>


<property name="nagle">

<value>false</value>

</property>


<property name="socketTO">

<value>3000</value>

</property>

</bean>


<bean id="memCachedClient" class="com.whalin.memcached.MemCachedClient">

<constructor-arg>

<value>memCachedPool</value>

</constructor-arg>

</bean>

</beans>


本文出自 “贾小仙” 博客,请务必保留此出处http://hackerxian.blog.51cto.com/9240575/1608490

memCached的配置文件 配置

原文:http://hackerxian.blog.51cto.com/9240575/1608490

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!