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

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/examples/sort.js
express_translate-1.0.13 node_modules/redis/examples/sort.js
express_translate-1.0.12 node_modules/redis/examples/sort.js
express_translate-1.0.11 node_modules/redis/examples/sort.js