Redix LogoDocumentation
API ReferenceKeys

GetKeys

Get all keys matching a pattern

Syntax

Redix.GetKeys(pattern, callback)

Parameters

Prop

Type

Returns

Prop

Type

Examples

-- Get all player keys
Redix.GetKeys('player:*', function(err, keys)
    if not err then
        print('Found ' .. #keys .. ' players')
    end
end)

Using * pattern on large databases can be slow. Use specific patterns when possible.