PHPackages                             yykpf/zookeeper-node-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. yykpf/zookeeper-node-cache

ActiveLibrary[Caching](/categories/caching)

yykpf/zookeeper-node-cache
==========================

Command line cache of zookeeper node

v1.2.2(6y ago)113MITPHPPHP &gt;=7.0.0

Since Mar 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yykpf/zookeeper-node-cache)[ Packagist](https://packagist.org/packages/yykpf/zookeeper-node-cache)[ RSS](/packages/yykpf-zookeeper-node-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

zk节点命令行缓存工具
===========

[](#zk节点命令行缓存工具)

### 命令行缓存

[](#命令行缓存)

### 使用方法

[](#使用方法)

```
1、引入项目

    composer require yykpf/zookeeper-node-cache

2、发布服务创建配置文件

     php artisan vendor:publish --provider='ZookeeperNodeCache\ZookeeperServiceProvider'

     lumen 需要引入  laravelista/lumen-vendor-publish 否则不存在 vendor:publish 这个命令
   有些服务可能不支持自动发布，就需要：
      1)、在config/app.php 中添加

          ```
             'providers' => [
                   ...
                   ZookeeperNodeCache\ZookeeperServiceProvider::class
             ],
             'aliases' => [
                  'zk' => ZookeeperNodeCache\Facades\ZookeeperFacade::class
              ],
          ```

     2)、查看是否存在文件 config/zookeepercache.php,如果没有就创建 并复制 config.php 内容进去
3、通过执行以下命令来开启zk缓存，缓存方式在config文件配置zookeepercache[支持文件和redis两种方式]

4、通过配置local_env变量来开启是否支持本地env缓存

5、执行命令 php artisan zookeeper:node:cache

6、调用方式 ($node 监听路劲[路径+版本号]下的节点值)
    use zk;

        zk::getNode($node)

7、如果想使用env缓存(目前支持文件类型的缓存)
    use zk;

        zk::putZkEnv()

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

Every ~4 days

Total

6

Last Release

2228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3daaca7aba39c5275fd220840b897945e8303b12c77fc35273f552d58713666d?d=identicon)[yykpf](/maintainers/yykpf)

---

Top Contributors

[![yykpf1206](https://avatars.githubusercontent.com/u/18073705?v=4)](https://github.com/yykpf1206 "yykpf1206 (7 commits)")[![yykpf](https://avatars.githubusercontent.com/u/14089155?v=4)](https://github.com/yykpf "yykpf (4 commits)")

### Embed Badge

![Health badge](/badges/yykpf-zookeeper-node-cache/health.svg)

```
[![Health](https://phpackages.com/badges/yykpf-zookeeper-node-cache/health.svg)](https://phpackages.com/packages/yykpf-zookeeper-node-cache)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

51795.3k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)

PHPackages © 2026

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