JedisCacheService extends JedisCacheServiceSupport { public void putObject(String key, Object value) { putObject(key,value,null); }  Object getObject(String key); void putObject(String key, Object value); void putObject(String key, Object value, Long expireTime); static byte[] serialize(Object object); static Object unserialize(byte[] bytes);  }
@Test public void putObject() { User user = new User("zhuoqiammingyue",19); jedisCacheService.putObject("user01",user); logger.info("缓存用户成功！"); }