r2m_config.inc.js 442 B

12345678910111213141516171819202122
  1. /*
  2. * 配置说明,注意all_key字段不能更改(不然,deleteListCache会有问题)
  3. r2mInfo[dbKey][tableName] = {
  4. 'key' : 'key',
  5. 'all_key' : 'all_key',
  6. 'ttl' : '每条数据的缓存时间,0为永久缓存,其他为秒数',
  7. };
  8. */
  9. var DEFAULT_R2M_TTL = 3600
  10. var r2mInfo = {}
  11. var Web = {}
  12. Web['cUser'] = {
  13. key: 'userId',
  14. all_key: 'enable',
  15. ttl: DEFAULT_R2M_TTL
  16. }
  17. r2mInfo['Web'] = Web
  18. exports = r2mInfo