README.md

Redback

A high-level Redis library.

$ npm install redback

Introduction

Redback provides an accessible and extensible interface to the Redis
data types and allows you to create
your own structures with ease. Redback comes with the following built-in
structures: List, Set, SortedSet, Hash, Channel, Cache

It also comes with the following advanced data structures:

DensitySet - A sorted set where adding an element increments its score and removing it decrements it

KeyPair - Uses two hash structures and an auto-incrementing key to assign an ID to each unique value

SocialGraph - Similar to Twitter's (following vs. followers)

CappedList - A list with a fixed length

Queue - A simple FIFO or LIFO queue

RateLimit - Count the number of times an event occurs over an interval. See this introduction.

BloomFilter - A probabilistic structure used to test whether an an element exists in a set

Structures have access to a Redis key this.key and the Redis client
this.client. If an init() method is defined then it is called after
the structure is instantiated. Also note that init() receives any extra parameters
from create<structure>().