PHPackages                             sme/cacher - 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. sme/cacher

ActiveLibrary[Caching](/categories/caching)

sme/cacher
==========

A simple class for caching

0.0.1(4y ago)051MITPHPPHP &gt;=7.1.0

Since Jan 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SergoMorello/cacher)[ Packagist](https://packagist.org/packages/sme/cacher)[ RSS](/packages/sme-cacher/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

 Cacher
=======

[](#--cacher)

Простой класс для кэширования данных
------------------------------------

[](#простой-класс-для-кэширования-данных)

[Cacher](#cacher)

### Cacher:

[](#cacher)

#### В кэше можно хранить любые данные и файлы от одной секунды до бесконечности

[](#в-кэше-можно-хранить-любые-данные-и-файлы-от-одной-секунды-до-бесконечности)

##### Установить директорию куда будет сохраняться весь кэш `по умолчанию это __DIR__.'/.cache/`

[](#установить-директорию-куда-будет-сохраняться-весь-кэш-по-умолчанию-это-__dir__cache)

```
Cacher::setDir(__DIR__.'/.cache/');
```

##### Сохранить данные в кэше put(`ключ`, `данные`, `время хранения в секундах`)

[](#сохранить-данные-в-кэше-putключ-данные-время-хранения-в-секундах)

```
Cacher::put('message', 'Hello World!', 60);
```

##### Получить данные

[](#получить-данные)

```
Cacher::get('message');
```

###### или получить и сразу удалить

[](#или-получить-и-сразу-удалить)

```
Cacher::pull('message');
```

##### Удалить

[](#удалить)

```
Cacher::forget('message');
```

##### Проверить существование по ключу

[](#проверить-существование-по-ключу)

```
Cacher::has('message');
```

##### Так же можно выполнять все действия с классом с помощью хелпера

[](#так-же-можно-выполнять-все-действия-с-классом-с-помощью-хелпера)

```
cacher()->put('message2', 'world hello', 180);

cacher()->get('message2');
```

###  Health Score

18

—

LowBetter than 7% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34d9c406e0531b61b66611a641819982ae6648a5584e6dea5f13f9c53b543477?d=identicon)[SergoMorello](/maintainers/SergoMorello)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sme-cacher/health.svg)

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

###  Alternatives

[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)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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