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

ActiveLibrary[Caching](/categories/caching)

yjtec/laravel-cache
===================

laravel cache

1.0.0(6y ago)03.3kMITPHP

Since Jul 13Pushed 6y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

1.set(key,value,\[expire\])
===========================

[](#1setkeyvalueexpire)

option
------

[](#option)

### key 存储的键名

[](#key-存储的键名)

### value 值

[](#value-值)

> string|array

如果是array 会用json\_encode 转换为字符串

### expire 单位分钟

[](#expire-单位分钟)

> 过期时间，如果不传，表示永久缓存

2.get(key)
==========

[](#2getkey)

> 获取缓存 如果存入为数组，返回也为数组

3.remove(key)
=============

[](#3removekey)

> 移除缓存

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2544d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48311842?v=4)[Yjtec](/maintainers/Yjtec)[@yjtec](https://github.com/yjtec)

---

Top Contributors

[![kidkang](https://avatars.githubusercontent.com/u/22092546?v=4)](https://github.com/kidkang "kidkang (1 commits)")[![kidkang89](https://avatars.githubusercontent.com/u/288277526?v=4)](https://github.com/kidkang89 "kidkang89 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

974169.8k2](/packages/awssat-laravel-visits)[artisansdk/ratelimiter

A leaky bucket rate limiter and corresponding middleware with route-level granularity compatible with Laravel.

1503.6M1](/packages/artisansdk-ratelimiter)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10139.4k5](/packages/bitrix24-b24phpsdk)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20171.5k14](/packages/pimcore-studio-backend-bundle)

PHPackages © 2026

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