读书人

xmemcached跟spring集成

发布时间: 2012-09-23 10:28:10 作者: rapoo

xmemcached和spring集成

<?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:context="http://www.springframework.org/schema/context"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"><bean name="memcachedClientBuilder" value="10"></property>         <property name="commandFactory">                 <bean />         </property>    </bean>    <!-- Use factory bean to build memcached client -->    <bean name="memcachedClient" factory-bean="memcachedClientBuilder"                factory-method="build" destroy-method="shutdown"/>                </beans>

读书人网 >编程

热点推荐