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

ActiveLibrary

nsc/cache
=========

cache

00PHP

Since Jun 17Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Cache
=====

[](#cache)

Cache connects and manages database based on application programming interface (**API**)

Highlights
----------

[](#highlights)

- Simple API
- Composer ready, \[PSR-2\] and \[PSR-4\] compliant
- Fully documented
- Demo

System Requirements
-------------------

[](#system-requirements)

You need:

- **PHP &gt;= 5.5** , but the latest stable version of PHP is recommended

to use the library.

-**Xcache&gt;=3.1.0**

Install
-------

[](#install)

Install nsc\\cache using Composer.

```
$ composer require nsc/cache

```

Config
------

[](#config)

```
$config = [
       'GROUP'  => 'ceShi',
        ];

```

Basic Usage
-----------

[](#basic-usage)

```
include("../vendor/autoload.php");
$cache = \Nsc\cache\Cache::getInstance($config);
$a = 'nsc';
$arr = array(1,2,3,4,5,6);
$cache->set($a,$arr);
var_dump($cache->get($a));

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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://www.gravatar.com/avatar/f844463c059d3d7646a596898b1afee79ae19ec82c97886f7201b0230c71bcfe?d=identicon)[nsc](/maintainers/nsc)

---

Top Contributors

[![fengxingnsc](https://avatars.githubusercontent.com/u/16182365?v=4)](https://github.com/fengxingnsc "fengxingnsc (25 commits)")[![nscgotomydream](https://avatars.githubusercontent.com/u/19342309?v=4)](https://github.com/nscgotomydream "nscgotomydream (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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