疯狂的狮子li
2021-06-24 cc2fbc7b89c0d88ff8dfb2f6ab663840e8610767
ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java
@@ -96,8 +96,12 @@
    * @param collection 多个对象
    * @return
    */
   public long deleteObject(final Collection collection) {
      return redissonClient.getKeys().delete(Arrays.toString(collection.toArray()));
   public void deleteObject(final Collection collection) {
      RBatch batch = redissonClient.createBatch();
      collection.forEach(t->{
         batch.getBucket(t.toString()).deleteAsync();
      });
      batch.execute();
   }
   /**