lib_config.js

/**
 * Configuration object.
 *
 * To override the default configuration, you can create a `bajo-cache.json` file in your
 * `{dataDir}/config/bajoCache.json` and set your custom configuration values there.
 *
 * @typedef {Object} TConfig
 * @memberof BajoCache
 * @type {Object}
 * @property {string} [connection='memory'] - Dobo connection to use. Default is 'memory'
 * @property {Object} [default={}] - Default configuration for cache items
 * @property {string} [default.ttlDur='5s'] - Default time-to-live duration for cache items. Default is '5s'
 * @property {string} [removeExpiredDur='1s'] - Duration for removing expired cache items. Default is '1s'
 * @property {Object} [dobo={}] - Configuration for the dobo store
 * @property {string} [exportPrefix='~'] - Prefix for exported cache keys. Default is '~'
 * @property {Object} [waibuAdmin={}] - Configuration for waibu admin
 * @property {boolean} [waibuAdmin.menuHandler=false] - Whether to enable menu handler in waibu admin. Default is false
 * @property {string} [waibuAdmin.modelDisabled='*'] - Model disabled setting in waibu admin. Default is '*'
 */
const config = {
  connection: 'memory',
  default: {
    ttlDur: '5s'
  },
  removeExpiredDur: '1s',
  dobo: {},
  exportPrefix: '~',
  waibuAdmin: {
    menuHandler: false,
    modelDisabled: '*'
  }
}

export default config