Please also support a Spring 3.1 Cache / CacheManager implementation, as well
GoogleCodeExporter opened this issue · comments
The API looks very powerful, but would you please also provide a Spring 3.1
Cache / CacheManager implementation, as well to make it easy to consume this
API in a consistant way from Spring 3.1 based applications?
Original issue reported on code.google.com by starbux...@gmail.com
on 24 Apr 2012 at 10:47
Changed type from Defect to Enhancement.
To use org.springframework.cache.Cache.clean() additional property will have to
be set by developer. By setting it developer agrees to take risk about loosing
data in cache when cache zones overlaps: memcached instances is used by more
than one cache zone.
Planned for 2.1.0 release.
Original comment by ragno...@gmail.com
on 24 Apr 2012 at 7:17
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
Original comment by ragno...@gmail.com
on 27 Apr 2012 at 6:18
- Added labels: Milestone-Release2.1.0
Code in trunk, so far only java serialization is supported.
Original comment by ragno...@gmail.com
on 16 May 2012 at 6:03
Sample configuration:
<?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"
xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/cache
http://www.springframework.org/schema/cache/spring-cache-3.1.xsd">
<cache:annotation-driven />
<context:annotation-config />
<context:component-scan base-package="com.google.code.ssm.spring.test" />
<bean name="cacheManager" class="com.google.code.ssm.spring.SSMCacheManager">
<property name="caches">
<set>
<bean class="com.google.code.ssm.spring.SSMCache">
<constructor-arg index="0" ref="sampleCache"/>
<constructor-arg index="1" value="60"/>
<constructor-arg index="2" value="false"/>
</bean>
</set>
</property>
</bean>
<bean name="sampleCache" class="com.google.code.ssm.CacheFactory">
<property name="cacheName" value="sampleCache"/>
<property name="cacheClientFactory">
<bean class="com.google.code.ssm.providers.xmemcached.MemcacheClientFactoryImpl" />
</property>
<property name="addressProvider">
<bean class="com.google.code.ssm.config.DefaultAddressProvider">
<property name="address" value="127.0.0.1:11211" />
</bean>
</property>
<property name="configuration">
<bean class="com.google.code.ssm.providers.CacheConfiguration">
<property name="consistentHashing" value="true" />
</bean>
</property>
</bean>
</beans>
Original comment by ragno...@gmail.com
on 6 Jul 2012 at 10:30
Required dependencies in pom:
<dependencies>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>spring-cache</artifactId>
<version>2.0.1.SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>xmemcached-provider</artifactId>
<version>2.0.1.SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependencies>
This feature will be released in next SSM version: 3.0.0.
Original comment by ragno...@gmail.com
on 6 Jul 2012 at 8:30
[deleted comment]
[deleted comment]
Available in 3.0.0:
<dependencies>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>spring-cache</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>xmemcached-provider</artifactId>
<version>3.0.0</version>
<type>jar</type>
</dependency>
<dependencies>
Original comment by ragno...@gmail.com
on 26 Jul 2012 at 5:27
- Changed state: Fixed