PHPackages                             nyuwa/simplecache - 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. nyuwa/simplecache

ActiveLibrary[Caching](/categories/caching)

nyuwa/simplecache
=================

A PHP Simple Cache Base on File.

01PHP

Since Mar 16Pushed 3y agoCompare

[ Source](https://github.com/qq781548819/simplecache)[ Packagist](https://packagist.org/packages/nyuwa/simplecache)[ RSS](/packages/nyuwa-simplecache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

### Installation

[](#installation)

```
//install by composer
composer require jiaweixs/simplecache

//or clone from github
git clone git@github.com:kulokai/simplecache.git

```

### Usage

[](#usage)

```
//init the tool
SimpleCache::init('.../path/to/cache');

//init the tool and set default expire time.
SimpleCache::init('.../path/to/cache',600);
```

```
//set cache
$isSuccess = SimpleCache::set('key','hello world');

//set cache and set expire time for the 'key'.
$isSuccess = SimpleCache::set('key','hello world',600);
```

```
//get cache
$value = SimpleCache::get('key');

//get cache and set default value for the 'key'.
$value = SimpleCache::get('key','default value');
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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/d8bbb15a7274f8c9af54938abee6b1c1d28ec6ade9afe1c8ef8d599743316193?d=identicon)[qq781548819](/maintainers/qq781548819)

---

Top Contributors

[![kulokai](https://avatars.githubusercontent.com/u/10880406?v=4)](https://github.com/kulokai "kulokai (11 commits)")[![justin-mc-lai](https://avatars.githubusercontent.com/u/13780920?v=4)](https://github.com/justin-mc-lai "justin-mc-lai (1 commits)")

### Embed Badge

![Health badge](/badges/nyuwa-simplecache/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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