当前位置:   article > 正文

自己实现RedisCallBack底层_new rediscallback

new rediscallback
SessionCallbacksessionCallback=new SessionCallback(){ @Override public Object execute(RedisOperations operations) throws DataAccessException{ operations.multi(); operations.delete("tttt"); operations.opsForValue.set("tttt","100"); Object val=operations.exec(); return val; } } StringRedisTemplate.execute(sessionCallback);
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号