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 4w 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 13% 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

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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