node-quotas
This module enables management of quotas in redis.
API
var Quotas = ; var config = quotas: emails: limit: 100 // limit of 100 emails for the given period sms: limit: 100 expires: 3600 // limit of 100 sms' for the 3600 seconds (5 minutes) redisUrl: 'redis://localhost' expires: 86400 // default expiry of 1 day; var quotas = config; // initialise and check all the settings.quotas; quotas;
features
- Set default quotas given a unique user identifier, a type and a default value.
License
Copyright (c) 2014 Mark Wolfe released under the MIT license.