API ReferenceKeys
Exists
Check if a key exists
Syntax
Redix.Exists(key, callback)Parameters
Prop
Type
Returns
Prop
Type
Examples
Redix.Exists('player:123', function(err, exists)
if not err then
if exists then
print('Player exists')
else
print('Player not found')
end
end
end)Use Cases
function PlayerExists(playerId, callback)
Redix.Exists('player:' .. playerId, callback)
end