PHPackages                             rjz1371/urncache - 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. rjz1371/urncache

ActiveProject[Caching](/categories/caching)

rjz1371/urncache
================

Laravel UrnCache provides a cache system with grouping ability.

v0.0.2(5y ago)532MITPHPPHP ^7.0

Since Jul 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rjz1371/UrnCache)[ Packagist](https://packagist.org/packages/rjz1371/urncache)[ RSS](/packages/rjz1371-urncache/feed)WikiDiscussions master Synced today

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

[![](https://camo.githubusercontent.com/97b5803421d3fe4307917cb5ab71bb9ad8ea9b32346d92cf52bf68c697d15478/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6474666276766b79702f696d6167652f75706c6f61642f76313536363333313337372f6c61726176656c2d6c6f676f6c6f636b75702d636d796b2d7265642e737667)](https://camo.githubusercontent.com/97b5803421d3fe4307917cb5ab71bb9ad8ea9b32346d92cf52bf68c697d15478/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6474666276766b79702f696d6167652f75706c6f61642f76313536363333313337372f6c61726176656c2d6c6f676f6c6f636b75702d636d796b2d7265642e737667)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/laravel/framework)[![Total Downloads](https://camo.githubusercontent.com/e93505dcc81f8750a8e183a5fb97dd1294daac165149280e29add0509258f4d0/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f642f746f74616c2e737667)](https://packagist.org/packages/laravel/framework)[![Latest Stable Version](https://camo.githubusercontent.com/c5ffcbe113dda06dd38a2844fa16a8a507540c32a89c6e4a737fbde2f1265ed0/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f762f737461626c652e737667)](https://packagist.org/packages/laravel/framework)[![License](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/laravel/framework)

About UrnCache
--------------

[](#about-urncache)

Laravel UrnCache provides a cache system with grouping ability.

**Quick Start**

**installation**

```
composer require rjz1371/urncache
composer update
```

**namespace**

```
use rjz1371\UrnCache\UrnCache;
```

**Put cache data without expire time ( forever cache ).**

```
$key = 'my-cache-key';
$value = [
    ['username' => 'rjz1371', 'age' => 25],
    ['username' => 'reza', 'age' => 20],
    ['username' => 'alex', 'age' => 56]
];
$group = 'users';
UrnCache::put($key, $value, $group);
```

**Put cache data with expire time ( expire after 1 hour ).**

```
$key = 'my-cache-key';
$value = [
    ['username' => 'rjz1371', 'age' => 25],
    ['username' => 'reza', 'age' => 20],
    ['username' => 'alex', 'age' => 56]
];
$group = 'users';
UrnCache::put($key, $value, $group, 3600);
```

**Checking cache exists or not ( $result is true or false ).**

```
$key = 'my-cache-key';
$group = 'users';
$result = UrnCache::has($key, $group);
```

**Retrive cache data.**

```
$key = 'my-cache-key';
$group = 'users';
$result = UrnCache::get($key, $group);
```

**Delete cache.**

```
$key = 'my-cache-key';
$group = 'users';
UrnCache::delete($key, $group);
```

**Delete all cache in special group.**

```
$group = 'users';
UrnCache::deleteByGroup($group);
```

**Delete all cache.**

```
UrnCache::deleteAll();
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

2

Last Release

2186d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ecdc293a7d68c5367e2069139c98fdd886b32b0f177a7563b607d02512c47e5?d=identicon)[reza jabbari](/maintainers/reza%20jabbari)

---

Top Contributors

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

---

Tags

laravelcacheUrnCache

### Embed Badge

![Health badge](/badges/rjz1371-urncache/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

973172.3k2](/packages/awssat-laravel-visits)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

13314.7k](/packages/nexxai-laravel-cfcache)[dragon-code/laravel-cache

An improved interface for working with cache

7046.0k10](/packages/dragon-code-laravel-cache)[omaralalwi/lexi-translate

Laravel translation package with morph relationships and caching.

7413.7k5](/packages/omaralalwi-lexi-translate)

PHPackages © 2026

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