Billing Overview
Pay-as-You-Go (postpaid)
Purchasing Channels
Payment Overdue
Refund Instructions
sPop(key: string): string
Parameter | Type | Description |
key | string | Key name. |
Type | Description |
string | On success, an element is randomly deleted and returned. |
import redis from "pts/redis";let client = new redis.Client("redis://:<password>@<host>:6379/0");export default function main() {let sAddResp = client.sAdd("set", "hello", "world");console.log(redis sAdd ${sAddResp}); // 2let sPopResp = client.sPop("set");console.log(redis sPop ${sPopResp}); // world}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback