forked from Archives/Athou_commafeed
added in memory cache and redis cache and marked them as application scoped
This commit is contained in:
22
pom.xml
22
pom.xml
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user