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(3y 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 1mo ago

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 32% 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

1446d 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

[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[cache/simple-cache-bridge

A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.

423.1M27](/packages/cache-simple-cache-bridge)

PHPackages © 2026

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