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

ActiveLibrary[Caching](/categories/caching)

akalod/cache
============

Basic Cache Module

00PHP

Since Jul 6Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

cache
=====

[](#cache)

basic redis cache operator

install
-------

[](#install)

```
composer require akalod/cache
```

examples
--------

[](#examples)

```
use Akalod/Cache;

//init redis connection
Cache::init(); //host, port, authPass,

//set Default cacheTime
Cache::cacheTime = 200;

//set
Cache::set('key','value',400); // key, value, cacheTime

//get
Cache::get('key');

//set and get with callback example
$result = Cache::getSet('keyName', function () {
            //value
            return DB::table('pages')
                ->where('status', 1)
                ->where('group', 1)
                ->orderBy('short', 'asc')
                ->get(['seo', 'title', 'page_title']);
    }, 700); //key, callback, cacheTime
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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/f52f41fae30e90118d16e94b6bd6a00337b83a57a005df086c347cc2df4c3af6?d=identicon)[akalod](/maintainers/akalod)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/akalod-cache/health.svg)](https://phpackages.com/packages/akalod-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)
