PHPackages                             shaneen31/russian-doll-caching - 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. shaneen31/russian-doll-caching

ActiveLibrary[Caching](/categories/caching)

shaneen31/russian-doll-caching
==============================

description\_text

V0.2.0(10y ago)1131GPL-3.0+PHPPHP &gt;=5.3.2

Since Mar 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Shaneen31/RussianDollCaching)[ Packagist](https://packagist.org/packages/shaneen31/russian-doll-caching)[ Docs](https://github.com/shaneen31/russiandollcaching)[ RSS](/packages/shaneen31-russian-doll-caching/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Russian Doll Caching (Fragmented Caching)
=========================================

[](#russian-doll-caching-fragmented-caching)

Version 0.2.0

### Main Features

[](#main-features)

- Allow caching fragment of pages.
- Cache single objects.
- Cache one big object made of smaller ones (Cascade Caching).
- Cache on disk.
- Cache with [Redis](http://redis.io/).

### How To Use

[](#how-to-use)

#### Cache using disk

[](#cache-using-disk)

Example to cache posts with Laravel.

Cache single object

In your view

```

```

Cascade Caching

In your model

```
public static function lastUpdated(){
        return self::orderBy('updated_at', 'DESC')->select('id', 'updated_at')->first();
    }

```

In your view

```

```

#### Cache using redis

[](#cache-using-redis)

Example to cache posts with Laravel.

Cache single object

In your view

```

```

Cascade Caching

In your model

```
public static function lastUpdated(){
        return self::orderBy('updated_at', 'DEST')->select('id', 'updated_at')->first();
    }

```

In your view

```

```

### License

[](#license)

The code for RussianDollCaching is distributed under the terms of the GNU/GPL V3 license (see [LICENSE](LICENSE)).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~0 days

Total

3

Last Release

3721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1598c91d41dabbab53c8ddd45f9eb0ddc0d530ffeb55ab1ef978bf2077eaa290?d=identicon)[Shaneen31](/maintainers/Shaneen31)

---

Top Contributors

[![Shaneen31](https://avatars.githubusercontent.com/u/8467415?v=4)](https://github.com/Shaneen31 "Shaneen31 (15 commits)")[![drstreet](https://avatars.githubusercontent.com/u/3112226?v=4)](https://github.com/drstreet "drstreet (1 commits)")

---

Tags

rediscachecachingfragmentrussian doll

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shaneen31-russian-doll-caching/health.svg)

```
[![Health](https://phpackages.com/badges/shaneen31-russian-doll-caching/health.svg)](https://phpackages.com/packages/shaneen31-russian-doll-caching)
```

###  Alternatives

[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)

PHPackages © 2026

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