diff --git a/fund-common/pom.xml b/fund-common/pom.xml
index 4eb3e7b..f12dd62 100644
--- a/fund-common/pom.xml
+++ b/fund-common/pom.xml
@@ -37,6 +37,18 @@
org.slf4j
slf4j-api
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
diff --git a/fund-common/src/main/java/com/fundplatform/common/cache/RedisService.java b/fund-common/src/main/java/com/fundplatform/common/cache/RedisService.java
new file mode 100644
index 0000000..6d1243c
--- /dev/null
+++ b/fund-common/src/main/java/com/fundplatform/common/cache/RedisService.java
@@ -0,0 +1,276 @@
+package com.fundplatform.common.cache;
+
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.TimeUnit;
+
+/**
+ * Redis缓存服务
+ */
+@Service
+public class RedisService {
+
+ private final RedisTemplate redisTemplate;
+
+ public RedisService(RedisTemplate redisTemplate) {
+ this.redisTemplate = redisTemplate;
+ }
+
+ // ==================== String操作 ====================
+
+ /**
+ * 设置缓存
+ */
+ public void set(String key, Object value) {
+ redisTemplate.opsForValue().set(key, value);
+ }
+
+ /**
+ * 设置缓存并设置过期时间
+ */
+ public void set(String key, Object value, long timeout, TimeUnit unit) {
+ redisTemplate.opsForValue().set(key, value, timeout, unit);
+ }
+
+ /**
+ * 设置缓存并设置过期时间(秒)
+ */
+ public void setEx(String key, Object value, long seconds) {
+ redisTemplate.opsForValue().set(key, value, seconds, TimeUnit.SECONDS);
+ }
+
+ /**
+ * 获取缓存
+ */
+ public Object get(String key) {
+ return redisTemplate.opsForValue().get(key);
+ }
+
+ /**
+ * 获取缓存并转换为指定类型
+ */
+ @SuppressWarnings("unchecked")
+ public T get(String key, Class clazz) {
+ Object value = redisTemplate.opsForValue().get(key);
+ if (value == null) {
+ return null;
+ }
+ return (T) value;
+ }
+
+ /**
+ * 删除缓存
+ */
+ public Boolean delete(String key) {
+ return redisTemplate.delete(key);
+ }
+
+ /**
+ * 批量删除缓存
+ */
+ public Long delete(Collection keys) {
+ return redisTemplate.delete(keys);
+ }
+
+ /**
+ * 判断key是否存在
+ */
+ public Boolean hasKey(String key) {
+ return redisTemplate.hasKey(key);
+ }
+
+ /**
+ * 设置过期时间
+ */
+ public Boolean expire(String key, long timeout, TimeUnit unit) {
+ return redisTemplate.expire(key, timeout, unit);
+ }
+
+ /**
+ * 获取过期时间
+ */
+ public Long getExpire(String key) {
+ return redisTemplate.getExpire(key);
+ }
+
+ /**
+ * 自增
+ */
+ public Long increment(String key) {
+ return redisTemplate.opsForValue().increment(key);
+ }
+
+ /**
+ * 自增指定值
+ */
+ public Long increment(String key, long delta) {
+ return redisTemplate.opsForValue().increment(key, delta);
+ }
+
+ /**
+ * 自减
+ */
+ public Long decrement(String key) {
+ return redisTemplate.opsForValue().decrement(key);
+ }
+
+ // ==================== Hash操作 ====================
+
+ /**
+ * 设置Hash字段
+ */
+ public void hSet(String key, String field, Object value) {
+ redisTemplate.opsForHash().put(key, field, value);
+ }
+
+ /**
+ * 设置Hash多个字段
+ */
+ public void hSetAll(String key, Map map) {
+ redisTemplate.opsForHash().putAll(key, map);
+ }
+
+ /**
+ * 获取Hash字段
+ */
+ public Object hGet(String key, String field) {
+ return redisTemplate.opsForHash().get(key, field);
+ }
+
+ /**
+ * 获取Hash所有字段
+ */
+ public Map