lib/permissions/Cache.js
function storeModel(model, permissionSchemaKey) {
    if (model && model.rolePermissions) {
        var obj = {
            permissionSchemaKey: permissionSchemaKey,
            rolePermissions: model.rolePermissions
        };
        exports.store(obj);
    }
}
function storeModel(model, permissionSchemaKey) {
    if (model && model.rolePermissions) {
        var obj = {
            permissionSchemaKey: permissionSchemaKey,
            rolePermissions: model.rolePermissions
        };
        exports.store(obj);
    }
}
function storeModel ( model , permissionSchemaKey ) { if ( model && model . rolePermissions ) { var obj = { permissionSchemaKey : permissionSchemaKey , rolePermissions : model . rolePermissions } ; exports . store ( obj ) ; } }
Method storing model's role permissions to cache
@param model {Object}
@param permissionSchemaKey {String}
Method storing model s role permissions to cache