Msunionstore
Bun

method

RedisClient.sunionstore

destination: KeyLike,
key: KeyLike,
...keys: KeyLike[]
): Promise<number>;

Store the union of multiple sets in a key

@param destination

The destination key to store the result

@param key

The first set key

@param keys

Additional set keys to union

@returns

Promise that resolves with the number of elements in the resulting set

Referenced types

type KeyLike = string | ArrayBufferView | Blob