PHPackages                             phpding/fast-cache - 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. phpding/fast-cache

ActiveLibrary[Caching](/categories/caching)

phpding/fast-cache
==================

a php fast cache library

017PHP

Since Dec 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phpding/fast-cache)[ Packagist](https://packagist.org/packages/phpding/fast-cache)[ RSS](/packages/phpding-fast-cache/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

//js树形查找

function getName(arr, id) {

```
    var num = arr.length;

    for (var i = 0; i < num; i++) {
        if (arr[i].id == id) {
            return arr[i].name
        } else {
            if (arr[i].children) {
                var name = getName(arr[i].children, id)
                if(name){
                    return name;
                }
            }
        }
    }
    return ''
}

var trees = [
    {
        id: 1,
        name: 'a',
        children: [
            {
                id: 4,
                name: 'b'
            },
            {
                id: 5,
                name: 'd'
            }

        ]
    },
    {
        id: 6,
        name: 'aa',
        children: [
            {
                id: 7,
                name: 'bb'
            },
            {
                id: 8,
                name: 'dd'
            }

        ]
    },
    {
        id: 2,
        name: 'b',
        children: []
    },
    {
        id: 3,
        name: 'd',
        children: []
    }
]

console.log(getName(trees, 8))

console.log(getName(trees, 5))

```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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://avatars.githubusercontent.com/u/17756535?v=4)[丁东阳](/maintainers/phpding)[@phpding](https://github.com/phpding)

---

Top Contributors

[![332132132](https://avatars.githubusercontent.com/u/11782804?v=4)](https://github.com/332132132 "332132132 (5 commits)")[![phpding](https://avatars.githubusercontent.com/u/17756535?v=4)](https://github.com/phpding "phpding (3 commits)")

### Embed Badge

![Health badge](/badges/phpding-fast-cache/health.svg)

```
[![Health](https://phpackages.com/badges/phpding-fast-cache/health.svg)](https://phpackages.com/packages/phpding-fast-cache)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)

PHPackages © 2026

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