Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

thinkjs/think-gc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository has been migrated. For ongoing updates, please see https://github.com/thinkjs/thinkjs/tree/master/packages/think-gc.

think-gc

Build Status Coverage Status npm

gc manager for ThinkJS 3.x

Install

npm install think-gc

How to use

const gc = require('think-gc');

class handle {
  constructor(){
    this.gcType = 'session';
    gc(this, 3600 * 1000); //gc interval by 1 hour
  }
  gc(){
    //do gc task
  }
}

About

gc manager for ThinkJS 3.x

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors