Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 example.js
Octocat-spinner-32 leaderboard.js
Octocat-spinner-32 package.json
README.md

Overview

Leaderboards backed by Redis for node.js, http://redis.io.

Builds off ideas proposed in http://blog.agoragames.com/2011/01/01/creating-high-score-tables-leaderboards-using-redis/.

See https://github.com/agoragames/leaderboard/ for detailed usage information

See http://nodejs.org/ for more information about node.js.

For other platforms see:

Example

See examples.js for more.

  var lbm = require("./leaderboard.js");
  var sys = require('sys');

  // instantiate a leaderboard
  leaderboard = lbm.Leaderboard('wins');

  // don't do anything until we've successfully connected
  leaderboard.on_connect(function () {
    leaderboard.total_members(function(err, reply) { sys.puts("total members: " + reply) })
  }

Dependencies

License

This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.

Something went wrong with that request. Please try again.