PHPackages                             aichenk/kay-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. aichenk/kay-cache

ActiveLibrary[Caching](/categories/caching)

aichenk/kay-cache
=================

psr-16 简单缓存实现

1.1.0(6y ago)128MITPHPPHP &gt;=7.2

Since Apr 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aiChenK/kay-cache)[ Packagist](https://packagist.org/packages/aichenk/kay-cache)[ RSS](/packages/aichenk-kay-cache/feed)WikiDiscussions master Synced 3w ago

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

kay-cache
=========

[](#kay-cache)

> 符合psr-16 简单缓存类

运行环境
----

[](#运行环境)

- PHP 7.2+

安装方法
----

[](#安装方法)

```
    composer require aichenk/kay-cache

```

使用
--

[](#使用)

```
use KayCache\Cache;

$options = [
    'host'       => '127.0.0.1',
    'port'       => 11211,
    'lifetime'   => 3600,
    'prefix'     => '',
    'serialize' => 'php'  // php|json|igbinary|msgpack
];
$cache = Cache::memcache($options);

$cache->set('test', '111');
$data = $cache->get('test');

print_r($data);

$keys = $cache->queryKeys();
print_r($keys);
```

更新说明
----

[](#更新说明)

2020-04-08

- **Add** 支持`queryKeys($prefix = '', bool $realKey = false)`方法，获取key列表

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

2268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7b581cba80f4aa30ab4a73b3edeecbcdbcc2c4e0c8af6d015e0571d9e2246fd?d=identicon)[aiChenK](/maintainers/aiChenK)

---

Top Contributors

[![aiChenK](https://avatars.githubusercontent.com/u/15376814?v=4)](https://github.com/aiChenK "aiChenK (7 commits)")

### Embed Badge

![Health badge](/badges/aichenk-kay-cache/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.2k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M155](/packages/algolia-algoliasearch-client-php)[moonshine/moonshine

Laravel administration panel

1.3k253.1k79](/packages/moonshine-moonshine)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k99](/packages/flow-php-etl)

PHPackages © 2026

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