PHPackages                             jolalau/webman-redis - 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. jolalau/webman-redis

ActiveLibrary[Caching](/categories/caching)

jolalau/webman-redis
====================

description

1.0.3(2y ago)140↓100%Apache-2.0PHPPHP &gt;=8.1

Since Dec 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jolalau/webman-redis)[ Packagist](https://packagist.org/packages/jolalau/webman-redis)[ RSS](/packages/jolalau-webman-redis/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

redis for webman

安装
--

[](#安装)

```
composer require jolalau/webman-redis
```

配置文件
----

[](#配置文件)

```
为了区分默认的 redis.php 配置文件，故此改为 cache.php

config/cache.php

```

示例
--

[](#示例)

```
use jolalau\WebManRedis\Redis;
use support\Request;

class Index
{
    public function test(Request $request)
    {
        $name = 'test_key';
        Redis::set($name, rand());
        return response(Redis::get($name));
    }

}
```

写入缓存
----

[](#写入缓存)

```
Redis::set('name', 'data'); // 永久有效
Redis::set('name', 'data', 600); // 有效期10分钟
```

查询缓存
----

[](#查询缓存)

```
Redis::get('name');
Redis::get('name', 'default');
```

判断是否存在
------

[](#判断是否存在)

```
if (Redis::has('name')) {
    //
}
```

删除缓存
----

[](#删除缓存)

```
Redis::delete('name');
```

清空缓存
----

[](#清空缓存)

```
Redis::clear();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cd71aec7b31e14f0c3165c83952ad5f5d910292b0d5895e31686f84d0785f45?d=identicon)[jolalau](/maintainers/jolalau)

---

Top Contributors

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

---

Tags

rediswebmanwebman-redis

### Embed Badge

![Health badge](/badges/jolalau-webman-redis/health.svg)

```
[![Health](https://phpackages.com/badges/jolalau-webman-redis/health.svg)](https://phpackages.com/packages/jolalau-webman-redis)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[cache/redis-adapter

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

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

Message Queue Redis Transport

405.5M25](/packages/enqueue-redis)[kdyby/redis

Redis storage for Nette Framework

491.6M2](/packages/kdyby-redis)

PHPackages © 2026

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