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

ActiveLibrary[Caching](/categories/caching)

scrawler/swoole-cache
=====================

High Speed in memory cahce using swoole table

v1.01(4y ago)2721Apache-2.0PHP

Since May 29Pushed 2y agoCompare

[ Source](https://github.com/scrawler-labs/swoole-cache)[ Packagist](https://packagist.org/packages/scrawler/swoole-cache)[ RSS](/packages/scrawler-swoole-cache/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Swoole Cache
============

[](#swoole-cache)

 🚀 A High speed , PSR-16 compatible cache library based on swoole-tables 🚀
 🇮🇳 Made in India 🇮🇳

💻 Installation
--------------

[](#-installation)

Swoole cache requires open-swoole extension to be installed follow this [guide](https://openswoole.com/docs/get-started/installation) to install open-swoole,

You can install Swoole cache via Composer. If you don't have composer installed , you can download composer from [here](https://getcomposer.org/download/)

```
composer install scrawler/swoole-cache
```

🏁 Usage
-------

[](#--usage)

This is a fully compatible [PSR-16 cache](https://www.php-fig.org/psr/psr-16/) and uses all the PSR 16 methods

```
include __DIR__.'/../vendor/autoload.php';

//Setup (parameter $size is optional)
$cache = new SwooleCache(10);

$key = "name";
$value = "Pranjal";

// set key value pair in in cache
$cache->set($key, $value);

// get value from key
$cache->get($key);

// delete value using key
cache->delete($key);

// Set multiples values
$datas = [
  "user_one" => "Pranjal",
  "user_two" => "Raj"
 ];

$cache->setMultiple($datas);

// Set multiple values
$cache->setMultiple($datas);

// Get multiple values
$cache->getMultiple(["user_one", "user_two"])

// Clear complete cache
$cache->clear();
```

📄 License
---------

[](#-license)

Swoole Cache is created by [Pranjal Pandey](https://www.github.com/ipranjal) and released under the [Apache 2.0 License](https://github.com/scrawler-labs/swoole-cache/blob/main/LICENSE).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

1496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7247fc69a537df786db0d4e060054491e670b13f942366d93e186d4a765f8603?d=identicon)[physcocode](/maintainers/physcocode)

---

Tags

cachefastopen-swoolephppsr-16swoole

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.3k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)

PHPackages © 2026

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