added in memory cache and redis cache and marked them as application scoped

This commit is contained in:
Athou
2013-06-29 11:20:53 +02:00
parent c2af4de96b
commit 27e03e3038
7 changed files with 161 additions and 30 deletions

22
pom.xml
View File

@@ -19,6 +19,7 @@
<jpa.datasource.name>java:openejb/Resource/My DataSource</jpa.datasource.name>
<jpa.dialect>org.hibernate.dialect.HSQLDialect</jpa.dialect>
<jpa.cache>false</jpa.cache>
<cache_service.class>com.commafeed.backend.cache.InMemoryCacheService</cache_service.class>
</properties>
<repositories>
@@ -69,6 +70,16 @@
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
<includes>
<include>**/beans.xml</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
@@ -172,6 +183,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
@@ -443,6 +459,12 @@
<jpa.cache>true</jpa.cache>
</properties>
</profile>
<profile>
<id>redis</id>
<properties>
<cache_service.class>com.commafeed.backend.cache.RedisCacheService</cache_service.class>
</properties>
</profile>
<profile>
<id>mysql</id>
<properties>