Mspop
Bun

method

RedisClient.spop

key: KeyLike
): Promise<null | string>;

Remove and return a random member from a set

@param key

The set key

@returns

Promise that resolves with the removed member, or null if the set is empty

key: KeyLike,
count: number
): Promise<null | string[]>;

Remove and return count members from the set

@param key

The set key

@returns

Promise that resolves with the removed members, or null if the set is empty

Referenced types

type KeyLike = string | ArrayBufferView | Blob