forked from ragnor/simple-spring-memcached
-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
28 lines (21 loc) · 1.61 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SIMPLE SPRING MEMCACHED 3.4.0 (2014)
------------------------------------
https://github.com/ragnor/simple-spring-memcached
http://code.google.com/p/simple-spring-memcached/
To build project and execute (integration) tests two memcached instances are required (on localhost, ports 11211 and 11212). By default two embedded
memcached (jmemcached) instances are used. Those instances are started on ports 11211 and 11212 at the beginning of integration tests and stopped after
by maven plugin (jmemcached-maven-plugin). No need to install external memcached to build project and run integration tests.
To use external memcached set maven property: -Djmemcached.disable=true.
memcached -d -m 256 -l 127.0.0.1 -p 11211
memcached -d -m 256 -l 127.0.0.1 -p 11212
Currently project can use one of two available providers:
for xmemcached use:
mvn clean package -Pxmemcached
for spymemcached use:
mvn clean package -Pspymemcached
Above maven and spring profile settings only define what provider will be used in integration tests.
In both cases created artifacts support spymemcached and xmemcached.
Because of using the lombok library and bug in older JVM versions (http://bugs.sun.com/view_bug.do?bug_id=6512707) you may get
'incompatible types' errors in compilation. To prevent such errors use Java in version at least 1.6.30.
Core modules of SSM: simple-spring-memcached, spymemcached-provider and xmemcached-provider require Spring 3.0.7.RELEASE.
The spring-cache module which provides integration with Spring Cache abstraction requires Spring 3.1.3.RELEASE (Spring Cache was introduced in 3.1).