项目作者: thinkjs

项目描述 :
gc manager for ThinkJS 3.x
高级语言: JavaScript
项目地址: git://github.com/thinkjs/think-gc.git
创建时间: 2017-03-18T23:16:22Z
项目社区:https://github.com/thinkjs/think-gc

开源协议:MIT License

下载


think-gc

Build Status
Coverage Status
npm

gc manager for ThinkJS 3.x

Install

  1. npm install think-gc

How to use

  1. const gc = require('think-gc');
  2. class handle {
  3. constructor(){
  4. this.gcType = 'session';
  5. gc(this, 3600 * 1000); //gc interval by 1 hour
  6. }
  7. gc(){
  8. //do gc task
  9. }
  10. }