PHPackages                             rsthn/rose-ext-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. rsthn/rose-ext-cache

ActiveRose-extension[Caching](/categories/caching)

rsthn/rose-ext-cache
====================

Cache Extension (Wind)

1.0.1(5y ago)15Apache-2.0PHP

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rsthn/rose-ext-cache)[ Packagist](https://packagist.org/packages/rsthn/rose-ext-cache)[ RSS](/packages/rsthn-rose-ext-cache/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Cache Extension
===============

[](#cache-extension)

This extension adds cache features to [Wind](https://github.com/rsthn/rose-ext-wind).

> **NOTE:** The extension detects the presence of Wind, when not installed, this extension will simply not be loaded.

Cache entries can contain any type of object, each entry is identified by an `id` which is just a string identifier used as a filename. Cache entries are stored in the `resources/.cache` directory.

The default TTL (time-to-live) of the cache entries is 3600 seconds, equivalent to 1 hour.

Installation
============

[](#installation)

```
composer require rsthn/rose-ext-cache
```

Expression Functions
--------------------

[](#expression-functions)

### `cache::valid` id:string tag:string \[ttl:integer\]

[](#cachevalid-idstring-tagstring-ttlinteger)

Determines if the cache entry identified by `id` is valid for the specified TTL (in seconds). Note that if no TTL is specified the default will be used.

### `cache::touch` id:string tag:string

[](#cachetouch-idstring-tagstring)

Sets the modified time of a cache entry identified by `id` to the current time to prevent cache invalidation.

### `cache::get` id:string tag:string \[ttl:integer\] value:object

[](#cacheget-idstring-tagstring-ttlinteger-valueobject)

Returns the contents of a cache entry given its `id` or creates it with the specified value if the entry is no longer valid or does not exist.

### `cache::path` id:string

[](#cachepath-idstring)

Returns the path to a cache entry given its id, regardless if it exists or is valid or not.

### `cache::pass` id:string tag:string \[ttl:integer\] value:object

[](#cachepass-idstring-tagstring-ttlinteger-valueobject)

Uses similar syntax as `cache::get` but does not actually use the cache, it simply directly returns the value. Used as a quick way to bypass cache to run tests while maintaining the `cache::get` syntax.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~255 days

Total

2

Last Release

1886d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40846185?v=4)[RedStar Technologies](/maintainers/rsthn)[@rsthn](https://github.com/rsthn)

---

Top Contributors

[![strikeone88](https://avatars.githubusercontent.com/u/50781762?v=4)](https://github.com/strikeone88 "strikeone88 (3 commits)")

### Embed Badge

![Health badge](/badges/rsthn-rose-ext-cache/health.svg)

```
[![Health](https://phpackages.com/badges/rsthn-rose-ext-cache/health.svg)](https://phpackages.com/packages/rsthn-rose-ext-cache)
```

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

33136.2k](/packages/beryllium-cachebundle)

PHPackages © 2026

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