PHPackages                             riste/repository - 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. riste/repository

ActiveLibrary[Caching](/categories/caching)

riste/repository
================

Allow you to easily cache laravel models and retrieve from laravel's cache by extending AbstractRepository

021PHP

Since Aug 14Pushed 1y agoCompare

[ Source](https://github.com/DimitrievskiRiste/repository)[ Packagist](https://packagist.org/packages/riste/repository)[ RSS](/packages/riste-repository/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

INSTALLATION: composer require riste/repository:dev-main

Caching models, example:

class UserRepository extends AbstractRepository { private string $key = "\_users"; public function getKey():string { return $this-&gt;key; } public function setKey(string $key):void { $this-&gt;$key = $key; } }

Finally, if i want to save/update my current user eloquent model i will call:

$userRepo = new UserRepository(); $userModel = User::find(1); $userRepo-&gt;addOrUpdate($userModel, 1); // where second parameter is TTL cache in hours

// If i need to search trough cache i will call findMany method $userRepo-&gt;findMany(\["name" =&gt; "Riste"\]); // Will look through cache where column is name and value Riste in case insensitive and will return array items of eloquent models that matches name Riste.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ee50ec70c5802b40723a92240aa284ccb6d12d5362303acfad6a225201cd29d?d=identicon)[DimitrievskiRiste](/maintainers/DimitrievskiRiste)

---

Top Contributors

[![DimitrievskiRiste](https://avatars.githubusercontent.com/u/202017114?v=4)](https://github.com/DimitrievskiRiste "DimitrievskiRiste (3 commits)")

### Embed Badge

![Health badge](/badges/riste-repository/health.svg)

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

###  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)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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