Skip to content

Commit

Permalink
Merge pull request #10 from vashilK/RC-improvements
Browse files Browse the repository at this point in the history
RC-improvements: updated AOP dependencies
  • Loading branch information
vashilK committed Dec 5, 2022
2 parents 9bc14cd + f82e6a0 commit 4c2cca7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 6 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<name>Redis-cache</name>
<groupId>io.github.vashilk</groupId>
<artifactId>redis-cache</artifactId>
<version>1.0.5.1</version>
<version>1.0.5.3</version>
<packaging>jar</packaging>
<url>https://github.com/vashilK/Redis-cache</url>
<description>Based on Springboot's implementation of Redis with added functionality.</description>
Expand Down Expand Up @@ -62,6 +62,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
Expand All @@ -77,17 +82,6 @@
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- Aspect-dependencies -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectJrt.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectJweaver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.aspectj.lang.annotation.Before;
import org.nki.redis.cache.annotations.CacheRelease;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import java.lang.reflect.Method;
Expand All @@ -20,6 +21,7 @@
*/

@Aspect
@Component
public class CacheReleaseHandler {

private final RedisTemplate<String, Object> redisTemplate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.lang.reflect.Method;
Expand All @@ -21,6 +22,7 @@
*/

@Aspect
@Component
public class CacheSaveHandler {

private final ObjectMapper objectMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import java.io.IOException;
Expand All @@ -42,6 +43,7 @@
*/

@Aspect
@Component
public class CacheSyncHandler implements ApplicationContextAware {

private final RedisTemplate<String, Object> template;
Expand Down

0 comments on commit 4c2cca7

Please sign in to comment.