Skip to content

RBatch and RTransaction with RLocalCachedMap #4587

Closed

Description

@shivangmittal01

I understand that all the changes which needs to be in sync with local cache should be done through RLocalCachedMap. But how can RLocalCachedMap be used with RBatch? If we need to update all the items updated via RBatch or RTransaction in local cache, is there a way to notify the pub-sub?

RBatch batch = redissonClient.createBatch(BatchOptions.defaults().responseTimeout(150, TimeUnit.SECONDS).skipResult());

     RMapAsync<String, ItemInventory> map = batch.getMap("MyMap", inventoryCodec);
      bulkList.forEach(t -> map.fastPutAsync(t.getKey(), t));
     batch.execute().getResponses();

Activity

  1. mrniko commented on Oct 10, 2022

    @mrniko
    Member
  2. shivangmittal01 commented on Oct 11, 2022

    @shivangmittal01
    Author

    @mrniko Thanks for the reply. Does transaction give the same level of performance when pushing batches in bulk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions