UNPKG

sails-permissions-sequelize

Version:

Sequelize version of : Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.

25 lines (21 loc) 520 B
var mapDelete = require('./mapDelete'), mapGet = require('./mapGet'), mapHas = require('./mapHas'), mapSet = require('./mapSet'); /** * Creates a cache object to store key/value pairs. * * @private * @static * @name Cache * @memberOf _.memoize */ function MapCache() { this.__data__ = {}; } // Add functions to the `Map` cache. MapCache.prototype['delete'] = mapDelete; MapCache.prototype.get = mapGet; MapCache.prototype.has = mapHas; MapCache.prototype.set = mapSet; module.exports = MapCache;