PHPackages                             axguowen/think-redisclient - 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. axguowen/think-redisclient

ActiveLibrary[Caching](/categories/caching)

axguowen/think-redisclient
==========================

Simple Redis Client For ThinkPHP

v1.1.0(1y ago)171Apache-2.0PHPPHP &gt;=7.2.5

Since May 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/axguowen/think-redisclient)[ Packagist](https://packagist.org/packages/axguowen/think-redisclient)[ RSS](/packages/axguowen-think-redisclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

ThinkPHP Redis 客户端管理器
=====================

[](#thinkphp-redis-客户端管理器)

一个简单的 ThinkPHP Redis 客户端连接管理工具

安装
--

[](#安装)

```
composer require axguowen/think-redisclient

```

使用
--

[](#使用)

首先配置config目录下的redisclient.php配置文件，然后可以按照下面的用法使用。

### 简单使用

[](#简单使用)

```
use \think\facade\RedisClient;
// 默认本机
$ping = RedisClient::ping();
// 连接其它服务器
$clientOther = RedisClient::connect('other');
// ping
$pingOther = $clientOther->ping();

// set方法
$setKey = RedisClient::set('mykey', 'myvalue');
// 连接其它服务器
$setKeyOther = RedisClient::connect('other')->set('mykey', 'myvalue');
```

### 使用键名构造器

[](#使用键名构造器)

```
use \think\facade\RedisClient;

$mykey = RedisClient::key('mykey');

// 设置值
$mykey->set('myvalue');
$value = $mykey->get();
var_dump($value);

// 将当前值改成其它值
$mykey->set('othervalue');
$value = $mykey->get();
var_dump($value);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Total

2

Last Release

563d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.0

v1.1.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bb2b3388238042a25cf42dc44e5ff84adc241510354abae9e91573556753205?d=identicon)[axguowen](/maintainers/axguowen)

---

Top Contributors

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

---

Tags

clientredisthinkphp

### Embed Badge

![Health badge](/badges/axguowen-think-redisclient/health.svg)

```
[![Health](https://phpackages.com/badges/axguowen-think-redisclient/health.svg)](https://phpackages.com/packages/axguowen-think-redisclient)
```

###  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)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)[ptrofimov/tinyredisclient

The most lightweight Redis client written in PHP

91719.6k7](/packages/ptrofimov-tinyredisclient)[kdyby/redis

Redis storage for Nette Framework

491.6M2](/packages/kdyby-redis)[clue/redis-protocol

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

5311.0M13](/packages/clue-redis-protocol)

PHPackages © 2026

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