PHPackages                             ordent/cache-url-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. ordent/cache-url-redis

ActiveLibrary[Caching](/categories/caching)

ordent/cache-url-redis
======================

AIO Cache Management based on URL and Auth Implementation

v1.0.0(5y ago)02MITPHPPHP &gt;=7.2

Since Aug 22Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ordent/cache-url-redis)[ Packagist](https://packagist.org/packages/ordent/cache-url-redis)[ RSS](/packages/ordent-cache-url-redis/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

ORDENT / CACHE-URL-REDIS
========================

[](#ordent--cache-url-redis)

AIO cache management service based on URL and Auth JWT Implementation.

How To Use
----------

[](#how-to-use)

1. Install the package via composer

```
composer require ordent/cache-url-redis
```

2. Implement the providers in your app configurations at `config/app.php`

```
'providers' => [
  Ordent\CacheURLRedis\Providers\URLCacheProvider::class
]
```

3. Add a constant in the start of your `bootstart/app.php` to measure the execution time of your api.

```
define('EXEC_TIME_START', microtime(true));
```

4. Add our middleware in `App\Http\Kernel` to short circuit the computation process to redis when the URL key is found.

```
protected $middleware = [
  Ordent\CacheURLRedis\Middleware\URLCacheMiddleware::class
]
```

5. Don't forget to set up your `CACHE` env implementation.

```
  CACHE_DRIVER=redis
```

Output
------

[](#output)

1. We measure and deliver the endpoint execution time via response header `X-Elapsed-Time`.
2. You need to send a Header in order to use the caching mechanism. If the header is not found on the request, the request will be computed normally. The header you need to set is `X-Cache-URL` with either value of `with-auth` or `without-auth`.
3. When the value `without-auth` is being used, the application will short circuit the computation process to Redis with finding the key of request URL.
4. However if the value `with-auth` is used, the application will use the Redis with key format : `{application-url}:{authorization-header-value}` with `authorization-header-value` is your JWT token with Bearer format removed.
5. As of now the cache will last 60 minutes and won't cache another value unless you use header `X-Cache-URL-Invalidate`, you can use it to invalidate the cache value after transaction or any other database change.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25136854?v=4)[Ordent Official](/maintainers/ordent)[@ordent](https://github.com/ordent)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ordent-cache-url-redis/health.svg)

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)

PHPackages © 2026

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