Skip to content

DB Access: DB scan cursor support for keys and fields to iterate it#74

Merged
tomek-US merged 10 commits intosonic-net:masterfrom
mbalachandar:master
May 23, 2023
Merged

DB Access: DB scan cursor support for keys and fields to iterate it#74
tomek-US merged 10 commits intosonic-net:masterfrom
mbalachandar:master

Conversation

@mbalachandar
Copy link
Contributor

Added following methods to scan and iterate the db entries using redis DB scan cursor.

  • NewScanCursor() : to create ScanCursor type to perform the GetNext.. operation
  • GetNextKeys() : retrieves a few keys and returns true if the scan is complete.
  • GetNextFields() : retrieves a few matching fields and returns true if the scan is complete.
  • GetNextRedisKeys() : retrieves a few redisKeys and returns true if the scan is complete

Required for the subscription enhancements as described in HLD sonic-net/SONiC#1287

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

@tomek-US tomek-US left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (based on Ryan's review)

@tomek-US tomek-US merged commit dd9848f into sonic-net:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants