Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
redis-rank
Advanced tools
Readme
⚠️ For ioredis <= 4.x use redis-rank@2.1.2
, for ioredis >= 5.x use the latest version.
$ npm install redis-rank ioredis
Redis 2.6.12 or newer is required. The package ioredis is a peer dependency and must be installed separately.
ES5
const Redis = require('ioredis');
const { Leaderboard, PeriodicLeaderboard, LeaderboardMatrix } = require('redis-rank');
ES6
import { Redis } from 'ioredis';
import { Leaderboard, PeriodicLeaderboard, LeaderboardMatrix } from 'redis-rank';
You will have to provide a ioredis connection. See here for more information.
const client = new Redis({
host: "127.0.0.1",
port: 6379
});
You are ready, now read one of the examples linked below!
A Redis server in localhost without password is expected. You can create one easily with Docker like so:
docker run -p 6379:6379 -t -i --rm redis:latest
⚠️ Note: The database #15 will be flushed ⚠️
Run tests:
npm test
I tried with ioredis-mock but I experienced some issues with Lua scripts so we have to rely on a real Redis server (which I think is better anyway).
MIT. See LICENSE.
FAQs
Manage real-time leaderboards using Redis
The npm package redis-rank receives a total of 520 weekly downloads. As such, redis-rank popularity was classified as not popular.
We found that redis-rank demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.