public void putSeckill(Seckill seckill) {
        String key = "seckill:" + seckill.getSeckillId();
        int timeout = 60;
        redisTemplate.opsForValue().set(key, seckill, timeout, TimeUnit.SECONDS);
    }
@Test
    void putSeckill() {
        long seckillId = 1001L;
        ValueOperations valueOperations = mock(ValueOperations.class);
        when(redisTemplate.opsForValue()).thenReturn(valueOperations);
        Seckill seckill = new Seckill();
        seckill.setSeckillId(seckillId);
        assertDoesNotThrow(() -> redisService.putSeckill(seckill));
    }