Sha256: 5268de156353685cc7a1bd0b6bf3e3665ddbf1e0d58d7a3a5735c8e023557ada
Contents?: true
Size: 424 Bytes
Versions: 32
Compression:
Stored size: 424 Bytes
Contents
var redis = require("redis"), client = redis.createClient(); client.sadd("mylist", 1); client.sadd("mylist", 2); client.sadd("mylist", 3); client.set("weight_1", 5); client.set("weight_2", 500); client.set("weight_3", 1); client.set("object_1", "foo"); client.set("object_2", "bar"); client.set("object_3", "qux"); client.sort("mylist", "by", "weight_*", "get", "object_*", redis.print); // Prints Reply: qux,foo,bar
Version data entries
32 entries across 32 versions & 3 rubygems