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

ActiveLibrary[Caching](/categories/caching)

phico/cache
===========

Lightweight cache server support for Phico

06PHP

Since Aug 6Pushed 2y agoCompare

[ Source](https://github.com/phico-php/cache)[ Packagist](https://packagist.org/packages/phico/cache)[ RSS](/packages/phico-cache/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cache
=====

[](#cache)

Lightweight cache support for [Phico](https://github.com/phico-php/phico)

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

[](#installation)

Using composer

```
composer require phico/cache
```

Config
------

[](#config)

Cache requires a specific config format for each driver

```
[

    'use' => env('CACHE_USE', 'default'),

    'drivers' => [

        'file' => [
            'path' => env('CACHE_FILESYSTEM_PATH', '/storage/cache'),
        ],

        'redis' => [
            'scheme' => env('CACHE_REDIS_SCHEME', 'tcp'),
            'host' => env('CACHE_REDIS_HOST', '127.0.0.1'),
            'port' => env('CACHE_REDIS_PORT', 6379),
        ],

    ],
];
```

Usage
-----

[](#usage)

Cache provides quick and simple access to cache servers such as Redis, KeyDB and Valkey.

```
$use = $config['use'];
$cache = new Cache($config['drivers'][$use]);

$cache->set('foo', 'bar');
$value = $cache->get('foo');
// $value = 'bar'

$cache->delete('foo');
$exists = $cache->exists('foo'):
// $exists = false
```

Issues
------

[](#issues)

If you discover any bugs or issues with behaviour or performance please create an issue, and if you are able a pull request with a fix.

Please make sure to update tests as appropriate.

For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[BSD-3-Clause](https://choosealicense.com/licenses/bsd-3-clause/)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity18

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://avatars.githubusercontent.com/u/65541311?v=4)[indgy](/maintainers/indgy)[@indgy](https://github.com/indgy)

---

Top Contributors

[![indgy](https://avatars.githubusercontent.com/u/65541311?v=4)](https://github.com/indgy "indgy (2 commits)")

### Embed Badge

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

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

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