PHPackages                             infrajs/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. infrajs/cache

ActiveLibrary[Caching](/categories/caching)

infrajs/cache
=============

Cache based on files and modified time

v1.0.10(5y ago)02.5k11PHP

Since Dec 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/infrajs/cache)[ Packagist](https://packagist.org/packages/infrajs/cache)[ Docs](https://github.com/infrajs/cache)[ RSS](/packages/infrajs-cache/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (3)Versions (10)Used By (11)

Создание кэша по дате изменения файла
=====================================

[](#создание-кэша-по-дате-изменения-файла)

**Disclaimer:** Module is not complete and not ready for use yet.

Использование
=============

[](#использование)

```
Cache::exec(array('path/to/file'), 'somefn', $fn, array($arg1, $arg2)); //- Функция somefn выполнится если было изменение указанных файлов
Cache::exec(true, 'somefn', $fn, array($arg1, $arg2)); //- Функция somefn выполняется всегда
Cache::exec(true, 'somefn', array($arg1, $arg2), $data); //-Установка нового значения в кэше. Функция somefn не выполняется.
```

Если ниодного файла в условии $cond не существует кэш будет сделан "навсегда", до тех пор пока не появится файл или до тех пор пока не будет очищен существующий кэш. Аргументы необязательны.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~222 days

Recently: every ~319 days

Total

9

Last Release

2066d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/341a8ef8a06866ad99b1bbcf0216fd8e331b076b1690a7d992c386192674b787?d=identicon)[akiyatkin](/maintainers/akiyatkin)

---

Top Contributors

[![akiyatkin](https://avatars.githubusercontent.com/u/953753?v=4)](https://github.com/akiyatkin "akiyatkin (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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