UNPKG

@resin/pinejs

Version:

Pine.js is a sophisticated rules-driven API engine that enables you to define rules in a structured subset of English. Those rules are used in order for Pine.js to generate a database schema and the associated [OData](http://www.odata.org/) API. This make

34 lines (31 loc) 529 B
export const cache = { permissionsLookup: { max: 5000, }, parsePermissions: { max: 100000, }, parseOData: { max: 100000, }, odataToAbstractSql: { max: 10000, }, abstractSqlCompiler: { max: 10000, }, apiKeys: { max: 10000, maxAge: 5 * 60 * 1000, }, }; export const db = { poolSize: 50, idleTimeoutMillis: 30000, connectionTimeoutMillis: 30000, }; export const migrator = { lockTimeout: 5 * 60 * 1000, // Used to delay the failure on lock taking, to avoid spam taking lockFailDelay: 20 * 1000, };