# wqycache

> 文件处理 缓存

Latest version **1.0.0** (published 2023-04-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install wqycache
pnpm add wqycache
yarn add wqycache
bun add wqycache
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-04-20 |
| First published | 2023-04-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangqiyi |
| Maintainers | wangwudi |
| Keywords | 缓存 |

## Links

- npm: https://www.npmjs.com/package/wqycache
- npm.io page: https://npm.io/package/wqycache

## Recent versions

- 1.0.0 (latest) — 2023-04-20

## README

//首先先引入这个模块
const file = require("./flex")
    //生成缓存的方法 file.saveCache 有三个参数 文件名 文件内容
    //过期时间单位【秒】
file.saveCache("文件名", "文件内容", "过期时间单位【秒】")
    //读取缓存 如果子啊存储时设置了过期时间那么他会判断是否过期
let res = file.readCache("log.txt")
console.log(res);
//生成文件方法
file.writeFile("log1.txt", "文件内容")
    //读取文件方法 参数一个 文件名
let res1 = flie.readFile("log1.txt")
console.log(res1);

//删除文件的方法
file.delFile("log1.txt")

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