Closed GoogleCodeExporter closed 9 years ago
Original comment by ragno...@gmail.com
on 2 Jul 2012 at 6:54
Which SSM version do you use?
Regardless of version if it is one of the latest then you can still use cache
without annotations. To do it instead of injecting
com.google.code.ssm.CacheFactory inject com.google.code.ssm.Cache object. If
you use more the one CacheFactory then you have to use @Qualifier:
public class CachingServiceTest {
@Autowired
//@Qualifier("defaultMemcachedClient")
com.google.code.ssm.Cache cache;
@Test
public void testGetCache() throws Exception {
Cache result = cache;
assertNotNull(result);
}
}
Does it fulfill your requirements?
You can also inject CacheFactory but cannot call getCache() or getObject().
Original comment by ragno...@gmail.com
on 3 Jul 2012 at 3:52
The issue is closed because of no activity.
Original comment by ragno...@gmail.com
on 30 Sep 2012 at 7:09
Original issue reported on code.google.com by
mark.a...@gmail.com
on 19 Jun 2012 at 7:23