PHPackages                             fastd/fastd-demo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fastd/fastd-demo

ActiveProject

fastd/fastd-demo
================

v1.0.0(8y ago)04171MITPHPPHP &gt;=5.6

Since Jun 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fastdlabs/fastd-demo)[ Packagist](https://packagist.org/packages/fastd/fastd-demo)[ RSS](/packages/fastd-fastd-demo/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

页面缓存插件使用教程
==========

[](#页面缓存插件使用教程)

1.安装 正式包 composer require fastd/cache-provider （暂时不能用 by.2018-06-29） 开发包 composer require "fastd/cache-provider:dev-master"

2.安装完成之后，修改配置文件 config/app.php 找到 services增加 \\FastD\\CacheProvider\\CacheServiceProvider::class，如下示例

```
  'services' => [
      \FastD\ServiceProvider\RouteServiceProvider::class,
      \FastD\ServiceProvider\LoggerServiceProvider::class,
      \FastD\ServiceProvider\DatabaseServiceProvider::class,
      \FastD\ServiceProvider\CacheServiceProvider::class,
      \FastD\ServiceProvider\MoltenServiceProvider::class,
      \ServiceProvider\HelloServiceProvider::class,
      \FastD\Viewer\Viewer::class,
      \FastD\CacheProvider\CacheServiceProvider::class,//新增的在此，上面的与此无关
  ],

```

3.设置页面缓存时长【此步可选，不设置默认60秒】 config/config.php 修改或增加 common.cache.lifetime ，代码示例如下

```
 return [
   'common' => [
     'cache' => [
       'lifetime' => 60
      ],
   ],
 ];

```

注：只针对GET请求正常响应码为200的页面有缓存； 完成；

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94c2bc821caf23977e1c3deea85e3cbc9a73a632e1afaf778638f7fe9da1c42b?d=identicon)[JanHuang](/maintainers/JanHuang)

---

Top Contributors

[![JanHuang](https://avatars.githubusercontent.com/u/7090871?v=4)](https://github.com/JanHuang "JanHuang (14 commits)")[![yygy125](https://avatars.githubusercontent.com/u/8511353?v=4)](https://github.com/yygy125 "yygy125 (6 commits)")

---

Tags

FastD

### Embed Badge

![Health badge](/badges/fastd-fastd-demo/health.svg)

```
[![Health](https://phpackages.com/badges/fastd-fastd-demo/health.svg)](https://phpackages.com/packages/fastd-fastd-demo)
```

###  Alternatives

[fastd/fastd

A High Performance API Framework By Swoole Extension

42015.4k18](/packages/fastd-fastd)[fastd/http

FastD Http

2733.8k18](/packages/fastd-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
