From efd9ac5b88dfdb3c4d2e4bcc5e7a5258aa55542c Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期一, 21 四月 2025 20:29:15 +0800 Subject: [PATCH] 更换缓存连接方式 --- MessagePushTravel/src/main/java/com/sinata/push/controller/RedisController.java | 94 ----------------------------------------------- 1 files changed, 0 insertions(+), 94 deletions(-) diff --git a/MessagePushTravel/src/main/java/com/sinata/push/controller/RedisController.java b/MessagePushTravel/src/main/java/com/sinata/push/controller/RedisController.java index 782296a..f7a3509 100644 --- a/MessagePushTravel/src/main/java/com/sinata/push/controller/RedisController.java +++ b/MessagePushTravel/src/main/java/com/sinata/push/controller/RedisController.java @@ -33,19 +33,6 @@ } - /** - * 批量获取 - * @param keys - * @return - */ - @ResponseBody - @PostMapping("/getValues") - public String getValues(String keys){ - String[] split = keys.split(","); - List<String> list = Arrays.asList(split); - List<Object> values = redisUtil.getValues(list); - return JSON.toJSONString(ResultUtil.success(values)); - } /** @@ -82,85 +69,4 @@ } - /** - * 添加数据到list集合 - * @param key - * @param s - * @return - */ - @ResponseBody - @PostMapping("/addValueList") - public String addValueList(String key, String value){ - redisUtil.addValueList(key, value); - return JSON.toJSONString(ResultUtil.success()); - } - - - /** - * 集合中获取数据 - * @param key - * @return - */ - @ResponseBody - @PostMapping("/getValueList") - public String getValueList(String key){ - String valueList = redisUtil.getValueList(key); - return JSON.toJSONString(ResultUtil.success(valueList)); - } - - - /** - * 删除集合数据 - * @param key - * @param count - * @param value - * @return - */ - @ResponseBody - @PostMapping("/delValueList") - public String delValueList(String key, long count, String value){ - redisUtil.delValueList(key, count, value); - return JSON.toJSONString(ResultUtil.success()); - } - - - /** - * 获取list集合数量 - * @param key - * @return - */ - @ResponseBody - @PostMapping("/getListCount") - public String getListCount(String key){ - Long length = redisUtil.getListCount(key); - return JSON.toJSONString(ResultUtil.success(length)); - } - - - /** - * 获取list集合数据 - * @param key - * @param start - * @param end - * @return - */ - @ResponseBody - @PostMapping("/getList") - public String getList(String key, Long start, Long end){ - List<String> list = redisUtil.getList(key, start, end); - return JSON.toJSONString(ResultUtil.success(list)); - } - - - /** - * 获取list集合所有数据 - * @param key - * @return - */ - @ResponseBody - @PostMapping("/getAllList") - public String getAllList(String key){ - List<String> list = redisUtil.getAllList(key); - return JSON.toJSONString(ResultUtil.success(list)); - } } -- Gitblit v1.7.1