Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-635

Implement Cluster SCAN support for Lettuce

    Details

      Description

      Lettuce supports SCAN within the cluster by reusing KeyScanCursor from the previous SCAN invocation. Lettuce maintains internally a scan state that is performed across all known master nodes:

      KeyScanCursor<String> scanCursor = null;
      
      do {
          if (scanCursor == null) {
              scanCursor = sync.scan();
          } else {
              scanCursor = sync.scan(scanCursor);
          }
          allKeys.addAll(scanCursor.getKeys());
      } while (!scanCursor.isFinished());
      

        Attachments

          Activity

            People

            • Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Mark Paluch
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: