Redix LogoDocumentation
API ReferenceSets

SInter

Get the intersection of multiple sets

Syntax

Redix.SInter(key1, key2, ..., callback)

Parameters

Prop

Type

Returns

Prop

Type

Examples

-- Find players in both teams
Redix.SInter('team:red', 'team:blue', function(err, common)
    if not err then
        print('Players in both teams:', #common)
    end
end)

-- Find users with all required permissions
Redix.SInter('users:admin', 'users:active', 'users:verified',
    function(err, qualified)
        print('Qualified users:', #qualified)
    end
)