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)313.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 yesterday

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

3032d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25aef9db96e7295dedf20a48e81eb69dcfd3b2cae12859d37aa90c8a6c53e720?d=identicon)[hhxsv5](/maintainers/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

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[rhubarbgroup/redis-cache

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

51795.3k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[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.3k1](/packages/jamm-memory)[predis/service-provider

Predis service provider for the Silex microframework

68546.6k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)

PHPackages © 2026

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