PHPackages                             nahuo/nhtpcache - 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. [Caching](/categories/caching)
4. /
5. nahuo/nhtpcache

ActiveLibrary[Caching](/categories/caching)

nahuo/nhtpcache
===============

nhtpcache

02PHP

Since Dec 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aylx990/nhtpcache)[ Packagist](https://packagist.org/packages/nahuo/nhtpcache)[ RSS](/packages/nahuo-nhtpcache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

nhtpcache
---------

[](#nhtpcache)

thinkphp6 缓存类 (二次开发版)

#### 新增方法：

[](#新增方法)

`Cache::ttl(string $name)` 获取缓存剩余有效期(秒)

`Cache::update(string $name, $newVal, bool $isMerge = true)` 更新缓存内容 (该方法区别于set方法，set方法不支持更新内容同时保留缓存剩余有效期)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/91e07fba86da3581964ea1c6fee9392fc8e92ba822d6c536ad0f791fc140a75c?d=identicon)[aylx990](/maintainers/aylx990)

---

Top Contributors

[![aylx990](https://avatars.githubusercontent.com/u/163129232?v=4)](https://github.com/aylx990 "aylx990 (6 commits)")

### Embed Badge

![Health badge](/badges/nahuo-nhtpcache/health.svg)

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

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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