@Test public void delStr() throws Exception { redisService.delStr("TEST"); }
@Override public void delStr(String key) { logger.info("删除 Redis 数据。入参：key：{}", key); ValueOperations<String, String> operations = stringRedisTemplate.opsForValue(); operations.getOperations().delete(key); }
RedisServiceImpl implements RedisService { @Override public void delStr(String key) { logger.info("删除 Redis 数据。入参：key：{}", key); ValueOperations<String, String> operations = stringRedisTemplate.opsForValue(); operations.getOperations().delete(key); } }
RedisServiceImpl implements RedisService { @Override public void delStr(String key) { logger.info("删除 Redis 数据。入参：key：{}", key); ValueOperations<String, String> operations = stringRedisTemplate.opsForValue(); operations.getOperations().delete(key); }  }
RedisServiceImpl implements RedisService { @Override public void delStr(String key) { logger.info("删除 Redis 数据。入参：key：{}", key); ValueOperations<String, String> operations = stringRedisTemplate.opsForValue(); operations.getOperations().delete(key); }  @Override void setStr(String key, String value); @Override String getStr(String key); @Override void delStr(String key); }
RedisServiceImpl implements RedisService { @Override public void delStr(String key) { logger.info("删除 Redis 数据。入参：key：{}", key); ValueOperations<String, String> operations = stringRedisTemplate.opsForValue(); operations.getOperations().delete(key); }  @Override void setStr(String key, String value); @Override String getStr(String key); @Override void delStr(String key);  }