PHPackages                             hhxsv5/redis-memory-analysis - 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. hhxsv5/redis-memory-analysis

ActiveLibrary[Caching](/categories/caching)

hhxsv5/redis-memory-analysis
============================

🔎 Analyzing memory of redis is to find the keys(prefix) which used a lot of memory, export the analysis result into csv file.

v1.0.7(8y ago)323.8k2MITPHPPHP &gt;=5.4

Since Nov 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hhxsv5/redis-memory-analysis)[ Packagist](https://packagist.org/packages/hhxsv5/redis-memory-analysis)[ Docs](https://github.com/hhxsv5/redis-memory-analysis)[ RSS](/packages/hhxsv5-redis-memory-analysis/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Redis memory analysis
=====================

[](#redis-memory-analysis)

🔎 Analyzing memory of redis is to find the keys(prefix) which used a lot of memory, export the analysis result into csv file.

Requirements
------------

[](#requirements)

- PHP 5.4 or later
- ext-redis &gt;=2.2.8
- predis/predis ~1.1.0

Installation via Composer([packagist](https://packagist.org/packages/hhxsv5/redis-memory-analysis))
---------------------------------------------------------------------------------------------------

[](#installation-via-composerpackagist)

```
composer require "hhxsv5/redis-memory-analysis:~1.0" -vvv
```

Usage
-----

[](#usage)

### Run demo

[](#run-demo)

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

use Hhxsv5\RMA\AnalyzeRedis;

$analyze = new AnalyzeRedis('127.0.0.1', 6379, '123456');

//Scan the keys which can be split by '#' ':'
//special pattern characters need to escape by '\'
$analyze->start(['#', ':']);

//Find the csv file in default target folder: ./reports
//CSV file name format: redis-analysis-{host}-{port}-{db}.csv
//The keys order by count desc
$analyze->saveReport();
```

[![CSV](https://raw.githubusercontent.com/hhxsv5/redis-memory-analysis/master/examples/demo.png)](https://raw.githubusercontent.com/hhxsv5/redis-memory-analysis/master/examples/demo.png)

License
-------

[](#license)

[MIT](https://github.com/hhxsv5/redis-memory-analysis/blob/master/LICENSE)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~17 days

Total

8

Last Release

3081d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7278743?v=4)[Biao Xie](/maintainers/hhxsv5)[@hhxsv5](https://github.com/hhxsv5)

---

Tags

analysisexport-csvfilememoryoccupancyredisusageredismemoryanalysisusageexport-csvfileoccupancy

### Embed Badge

![Health badge](/badges/hhxsv5-redis-memory-analysis/health.svg)

```
[![Health](https://phpackages.com/badges/hhxsv5-redis-memory-analysis/health.svg)](https://phpackages.com/packages/hhxsv5-redis-memory-analysis)
```

###  Alternatives

[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

52699.8k1](/packages/rhubarbgroup-redis-cache)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.2M6](/packages/symfony-bundles-redis-bundle)[jamm/memory

Key-value storage in memory. As a storage can be used: APC, Redis, Memcache, Shared memory. All storage objects have one interface, so you can switch them without changing the working code. Contains PHP Redis client.

13326.8k1](/packages/jamm-memory)[pdffiller/qless-php

PHP Bindings for qless

29113.7k1](/packages/pdffiller-qless-php)[contributte/redis

Redis client integration into Nette framework

181.7M2](/packages/contributte-redis)[bnomei/kirby3-redis-cachedriver

Advanced Redis cache-driver with in-memory store, transactions and preloading

101.8k](/packages/bnomei-kirby3-redis-cachedriver)

PHPackages © 2026

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