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 5d 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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2221d 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

[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[cache/redis-adapter

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

523.9M27](/packages/cache-redis-adapter)[cache/simple-cache-bridge

A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.

423.1M27](/packages/cache-simple-cache-bridge)

PHPackages © 2026

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