PHPackages                             i80586/rcache - 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. i80586/rcache

ActiveLibrary[Caching](/categories/caching)

i80586/rcache
=============

Simple caching library

04PHP

Since Nov 22Pushed 8y agoCompare

[ Source](https://github.com/i80586/RCache)[ Packagist](https://packagist.org/packages/i80586/rcache)[ RSS](/packages/i80586-rcache/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

RCache
======

[](#rcache)

[![Build Status](https://camo.githubusercontent.com/5fb1b58babd1353cd6c8257c578ab1afecc38ee4037f2c085f43ba8a0d8664d5/68747470733a2f2f7472617669732d63692e6f72672f6938303538362f5243616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/i80586/RCache)[![Total Downloads](https://camo.githubusercontent.com/8a2785dd62fc87616a6525d6a79f472b531e2f30c3027112b6ac6c7a3ecffa54/68747470733a2f2f706f7365722e707567782e6f72672f6938303538362f7263616368652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/i80586/rcache)

Simple PHP library for caching data in files and memory

### Installing via Composer

[](#installing-via-composer)

The recommended way to install RCache is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, add following string into the composer.json file:

```
{
    ...
    "require" : {
        ...
         "i80586/rcache": "dev-master"
        ...
    }
    ...
}
```

Now you can update composer packages via

```
composer update
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Examples
--------

[](#examples)

#### File cache (manually cache)

[](#file-cache-manually-cache)

```
use RCache\Cache;
use RCache\FileCache;

$cache = new Cache(new FileCache(__DIR__ . '/cache'));

// save data in cache
$cache->set('country', [
		'city' => 'Baku',
		'country' => 'Azerbaijan'
	], 3600);

// get cache by identifier
$country = $cache->get('country');

// remove cache
$cache->drop('country');
```

#### File cache (content cache)

[](#file-cache-content-cache)

```
use RCache\Cache;
use RCache\FileCache;

$cache = new Cache(new FileCache(__DIR__ . '/cache'));

...other HTML content...

    ...content to be cached...

...other HTML content...
```

#### Memory cache (manually cache)

[](#memory-cache-manually-cache)

```
use RCache\Cache;
use RCache\MemCache;

$cache = new Cache(new MemCache());

// save data in cache
$cache->set('country', [
		'city' => 'Baku',
		'country' => 'Azerbaijan'
	], 3600);

// get cache by identifier
$country = $cache->get('country');

// remove cache
$cache->drop('country');
```

#### Memory cache (content cache)

[](#memory-cache-content-cache)

```
use RCache\Cache;
use RCache\MemCache;

$cache = new Cache(new MemCache());

...other HTML content...

    ...content to be cached...

...other HTML content...
```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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://avatars.githubusercontent.com/u/3355250?v=4)[Rasim Ashurov](/maintainers/i80586)[@i80586](https://github.com/i80586)

---

Top Contributors

[![i80586](https://avatars.githubusercontent.com/u/3355250?v=4)](https://github.com/i80586 "i80586 (20 commits)")

### Embed Badge

![Health badge](/badges/i80586-rcache/health.svg)

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

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975175.4k2](/packages/awssat-laravel-visits)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)

PHPackages © 2026

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