simple-spring-memcached

Spring cache using memcached

不想你离开。 提交于 2020-01-05 07:31:09
问题 I'm using https://github.com/AKQABER/simple-spring-memcached to have memcached integrated as a cache implementation with spring. But I'had no success :P I'm using spring 4 and spring-data-jpa public interface FooRepository extends JpaRepository<Foo, Long> { @Cacheable(value = "defaultCache", key = "lala") Foo findByNameAndDescription(String name, String description); } I hardcoded the key for test purposes. Nothing special, use a cache called "defaultCache". The configuration of memcached is:

How to handle code when memchache is not working(simple-spring-memcached)

给你一囗甜甜゛ 提交于 2019-12-25 05:07:19
问题 Thanks to the 'Getting started guide' in ‘simple-spring-memcached’ I manage to get memcached working in my project using ‘Spring 3.1’ example in in the guide , Im using ‘spymemcached’ as the provider . All working well when memcached server is up and running. However, when memcache server is not accessible (deliberately shut down for testing) underline code doesn’t work and application wont execute simply throwing runtime exception ,stating that unable to connect to memcache server and

How to handle code when memchache is not working(simple-spring-memcached)

浪尽此生 提交于 2019-12-25 05:07:15
问题 Thanks to the 'Getting started guide' in ‘simple-spring-memcached’ I manage to get memcached working in my project using ‘Spring 3.1’ example in in the guide , Im using ‘spymemcached’ as the provider . All working well when memcached server is up and running. However, when memcache server is not accessible (deliberately shut down for testing) underline code doesn’t work and application wont execute simply throwing runtime exception ,stating that unable to connect to memcache server and