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

ActiveLibrary[Caching](/categories/caching)

anoxgh/simplecache
==================

simple cache classes

09PHP

Since May 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP SimpleCache
===============

[](#php-simplecache)

Install
-------

[](#install)

Install via [composer](https://getcomposer.org):

```
{
    "require": {
        "anoxgh/simplecache": "dev-master"
    }
}
```

Run `composer install` then use as normal:

Usage
-----

[](#usage)

```
$fileCache = new AnoxGH\SimpleCache\FileCache('Temporary/FileCache');
$fileCache->set('CacheKey', 'ExampleValue', 360);
var_dump($fileCache->get('CacheKey'));

$fileCache->flush('CacheKey');

$sessionCache = new AnoxGH\SimpleCache\SessionCache();
$sessionCache->set('CacheKey', 'ExampleValue', 360);

var_dump($sessionCache->get('CacheKey'));

$sessionCache->flush('CacheKey');

$apcCache = new AnoxGH\SimpleCache\ApcCache();
$apcCache->set('CacheKey', 'ExampleValue', 360);
var_dump($apcCache->get('CacheKey'));

$apcCache->flush('CacheKey');

$memoryCache = new AnoxGH\SimpleCache\MemoryCache();
$memoryCache->set('CacheKey', 'ExampleValue', 360);
var_dump($memoryCache->get('CacheKey'));

$memoryCache->flush('CacheKey');

$memCacheServer = array(
            array('127.0.0.1', 7000, 10),
            array('127.0.0.2', 7000, 20));

$memCache = new AnoxGH\SimpleCache\MemCache($memCacheServer);
$memCache->set('CacheKey', 'ExampleValue', 360);
var_dump($memCache->get('CacheKey'));

$memCache->flush('CacheKey');
```

Credits
-------

[](#credits)

PHP SimpleCache was created by [Sebastian Gieselmann](https://github.com/anoxGH). Released under the GPL-2.0 license.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/32117d4d4908d1cef766df123ffecdb4f5938f31391f6d105b1ce575a8357944?d=identicon)[anox87](/maintainers/anox87)

---

Top Contributors

[![anoxGH](https://avatars.githubusercontent.com/u/4466645?v=4)](https://github.com/anoxGH "anoxGH (1 commits)")

### Embed Badge

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

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

###  Alternatives

[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)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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