码迷,mamicode.com
首页 > 系统相关 > 详细

memCached的配置文件 配置

时间:2015-01-26 17:24:27      阅读:165      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!