PHPackages                             neoan3-apps/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. [Caching](/categories/caching)
4. /
5. neoan3-apps/cache

ActiveLibrary[Caching](/categories/caching)

neoan3-apps/cache
=================

Caching based on output buffer

0381PHP

Since Dec 14Pushed 5y agoCompare

[ Source](https://github.com/sroehrl/neoan3-cache)[ Packagist](https://packagist.org/packages/neoan3-apps/cache)[ RSS](/packages/neoan3-apps-cache/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (1)

neoan3 caching app
==================

[](#neoan3-caching-app)

This class will utilize the output buffer to establish basic caching. This is especially useful if you render static pages server-side after computational procedures.

Installation
------------

[](#installation)

`composer require neoan3-apps/cache`

### Usage

[](#usage)

1. Set caching as early as possible during execution. In neoan3, the construct of the used frame is ideal.

    ```
    function __construct() {
        Neoan3\Apps\Cache::setCaching('-2 hours');
        parent::__construct();
    }
    ```
2. Write the output after rendering your application. In a neoan3 frame:

    ```
    // overwrite output method
    function output($params = []) {
        parent::output($params);
        Neoan3\Apps\Cache::write();
    }
    ```

Methods
-------

[](#methods)

### setCaching

[](#setcaching)

`Neoan3\Apps\Cache::setCaching( strtotime-expression, ['fileEnding'] )`

The first parameter expresses the lifetime of the cached file. Use a negative strtotime-expression. The second parameter overwrites the default value `['Controller.php']`, which holds values controlling what strings must be included in file-names for the files to be cached.

### write

[](#write)

`Neoan3\Apps\Cache::write()`

Writes the output buffer to a cached file in the respective component.

### invalidate

[](#invalidate)

`Neoan3\Apps\Cache::invalidate( string )`

Takes the name of a component folder as string to delete all cache-files of a particular component.

### invalidateAll

[](#invalidateall)

`Neoan3\Apps\Cache::invalidateAll()`

Clears all cache-files in the project.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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/92d2361b646651e3452a62d07274076346c4096480098a6c43d6c27ee28d460d?d=identicon)[neoan](/maintainers/neoan)

---

Top Contributors

[![sroehrl](https://avatars.githubusercontent.com/u/28542911?v=4)](https://github.com/sroehrl "sroehrl (5 commits)")

### Embed Badge

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

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

###  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)
