Nymph Config

interface Config {
    cache: boolean;
    cacheLimit: number;
    cacheThreshold: number;
    debugError: ((source, message) => void);
    debugInfo: ((source, message) => void);
    debugLog: ((source, message) => void);
    emptyListError: boolean;
}

Properties

cache: boolean

Cache recently retrieved entities to speed up database queries. Uses more memory.

cacheLimit: number

The number of recently retrieved entities to cache. If you're running out of memory, try lowering this value. 0 means unlimited.

cacheThreshold: number

Cache entities after they're accessed this many times.

debugError: ((source, message) => void)

A function to log error messages. By default, uses the debug package.

Type declaration

    • (source, message): void
    • Parameters

      • source: string
      • message: string

      Returns void

debugInfo: ((source, message) => void)

A function to log info messages. By default, uses the debug package.

Type declaration

    • (source, message): void
    • Parameters

      • source: string
      • message: string

      Returns void

debugLog: ((source, message) => void)

A function to log debug messages. By default, uses the debug package.

Type declaration

    • (source, message): void
    • Parameters

      • source: string
      • message: string

      Returns void

emptyListError: boolean

When querying for multiple entities with NymphREST, if the list is empty, return a 404 error.