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