# think-gc

> gc for ThinkJS 3.x

Latest version **1.0.3** (published 2021-07-01) · 0 weekly downloads

## Install

```sh
npm install think-gc
pnpm add think-gc
yarn add think-gc
bun add think-gc
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-07-01 |
| First published | 2017-03-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | welefen |
| Maintainers | lizheming, welefen, sijiecai, lushijie, berwin, bezos, toxicjohann, huangxiaolu |

## Links

- npm: https://www.npmjs.com/package/think-gc
- Repository: https://github.com/thinkjs/think-gc
- Homepage: https://github.com/thinkjs/think-gc#readme
- Issues: https://github.com/thinkjs/think-gc/issues
- npm.io page: https://npm.io/package/think-gc

## Dependencies (2)

- [think-ms](https://npm.io/package/think-ms.md) ^1.0.1
- [think-helper](https://npm.io/package/think-helper.md) ^1.1.3

## Recent versions

- 1.0.3 (latest) — 2021-07-01
- 1.0.2 — 2017-07-21
- 1.0.1 — 2017-03-22

## README

# think-gc
[![Build Status](https://travis-ci.org/thinkjs/think-gc.svg?branch=master)](https://travis-ci.org/thinkjs/think-gc)
[![Coverage Status](https://coveralls.io/repos/github/thinkjs/think-gc/badge.svg?branch=master)](https://coveralls.io/github/thinkjs/think-gc?branch=master)
[![npm](https://img.shields.io/npm/v/think-gc.svg?style=flat-square)](https://www.npmjs.com/package/think-gc)


gc manager for ThinkJS 3.x

## Install

```
npm install think-gc
```

## How to use
```js
const gc = require('think-gc');

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

---
_Source: https://npm.io/package/think-gc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
