PHPackages                             lexiang/lexiang-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. lexiang/lexiang-cache

ActiveLibrary[Caching](/categories/caching)

lexiang/lexiang-cache
=====================

缓存数据 缓存预处理

V1.0.6(6y ago)027MITPHPPHP &gt;=7

Since Feb 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/userzhangjinlong/lexiang-cache)[ Packagist](https://packagist.org/packages/lexiang/lexiang-cache)[ RSS](/packages/lexiang-lexiang-cache/feed)WikiDiscussions master Synced 4d ago

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

环境要求(适配laravel框架)
=================

[](#环境要求适配laravel框架)

php &gt;= 7
composer
redis
Predis

Predis安装
========

[](#predis安装)

composer require predis/predis

lexiang-cache安装
===============

[](#lexiang-cache安装)

composer require lexiang/lexiang-cache

设置hash缓存数组
==========

[](#设置hash缓存数组)

setHash($key, array $hash);
---------------------------

[](#sethashkey-array-hash)

$key 缓存键值
$hash 缓存数组

获取hash缓存指定数据
============

[](#获取hash缓存指定数据)

getValueByHash($key, array $fields);
------------------------------------

[](#getvaluebyhashkey-array-fields)

$key 缓存键值
$fields 数组键值

获取所有hash缓存数据
============

[](#获取所有hash缓存数据)

getHashAll($key)
----------------

[](#gethashallkey)

$key 缓存键值

删除hash缓存
========

[](#删除hash缓存)

removeHash($key, array $fields)
-------------------------------

[](#removehashkey-array-fields)

$key 缓存键值
$fields 数组键值

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

7

Last Release

2283d ago

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

v1.0.5PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6e40255013935a46af7cf647381f66a0a10187b1a1066925abec1a82928d1ac?d=identicon)[userzhangjinlong](/maintainers/userzhangjinlong)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lexiang-lexiang-cache/health.svg)

```
[![Health](https://phpackages.com/badges/lexiang-lexiang-cache/health.svg)](https://phpackages.com/packages/lexiang-lexiang-cache)
```

###  Alternatives

[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)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

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

272.6M13](/packages/cache-predis-adapter)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)

PHPackages © 2026

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