疯狂的狮子li
2021-07-13 55546dfc80bd2ec1be8786b19f53df4e1c1e44e5
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();
   }
   /**
@@ -201,9 +205,9 @@
    * @param hKeys Hash键集合
    * @return Hash对象集合
    */
   public <T> List<T> getMultiCacheMapValue(final String key, final Collection<Object> hKeys) {
      RListMultimap rListMultimap = redissonClient.getListMultimap(key);
      return rListMultimap.getAll(hKeys);
   public <K,V> Map<K,V> getMultiCacheMapValue(final String key, final Set<K> hKeys) {
      RMap<K,V>  rMap = redissonClient.getMap(key);
      return rMap.getAll(hKeys);
   }
   /**