redis-identity
Redis script for mapping external ID's to sequential ones. Adapted from crashlytics.
install
$ npm install redis-identity
usage
Pass in a node-redis client, and an optional key to use for the id mappings.
var redis = client = redis identity = client; ;
The second argument is the optional for the mapping, it defaults to identity-map
.
var redis = client = redis identity = client 'my-id-map'; ;
notes
- this will only work with node_redis >= 0.8.2.
license
MIT