Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ytkimirti
Copy link
Collaborator

@ytkimirti ytkimirti commented Jun 2, 2025

This PR introduces the WITHTYPE option to the scan command which is usefull for getting the types of the keys without sending seperate TYPE <key> commands for each one of them.

await redis.scan("0", {
    withTypes: true
})

// Returns
// [cursor, [{ key: "key1", type: "string" }, { key: "key2", type: "list" }]]

@linear
Copy link

linear bot commented Jun 2, 2025

@ytkimirti ytkimirti force-pushed the DX-1887-withtypes branch from 743d8a7 to 9aa57c1 Compare June 2, 2025 07:51
@CahidArda CahidArda merged commit 09f2eba into main Jun 2, 2025
14 checks passed
@CahidArda CahidArda deleted the DX-1887-withtypes branch June 2, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants