{"id":15190058,"url":"https://github.com/rinvex/laravel-cacheable","last_synced_at":"2025-10-02T04:31:47.525Z","repository":{"id":48374466,"uuid":"79321486","full_name":"rinvex/laravel-cacheable","owner":"rinvex","description":"⚠️ [ABANDONED] Rinvex Cacheable is a granular, intuitive, and fluent caching system for eloquent models. Simple, but yet powerful, plug-n-play with no hassle.","archived":true,"fork":false,"pushed_at":"2022-02-16T01:55:32.000Z","size":144,"stargazers_count":111,"open_issues_count":0,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T04:53:49.451Z","etag":null,"topics":["cache","eloquent","laravel","php","query"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rinvex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-18T08:55:41.000Z","updated_at":"2023-12-29T04:40:55.000Z","dependencies_parsed_at":"2022-09-13T03:01:39.324Z","dependency_job_id":null,"html_url":"https://github.com/rinvex/laravel-cacheable","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinvex%2Flaravel-cacheable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinvex%2Flaravel-cacheable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinvex%2Flaravel-cacheable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinvex%2Flaravel-cacheable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinvex","download_url":"https://codeload.github.com/rinvex/laravel-cacheable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234934662,"owners_count":18909707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","eloquent","laravel","php","query"],"created_at":"2024-09-27T20:03:58.190Z","updated_at":"2025-10-02T04:31:47.203Z","avatar_url":"https://github.com/rinvex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rinvex Cacheable\n\n⚠️ This package is abandoned and no longer maintained. No replacement package was suggested. ⚠️\n\n👉 If you are interested to step on as the main maintainer of this package, please [reach out to me](https://twitter.com/omranic)!\n\n---\n\n**Rinvex Cacheable** is a granular, intuitive, and fluent caching system for eloquent models. Simple, but yet powerful, plug-n-play with no hassle.\n\n[![Packagist](https://img.shields.io/packagist/v/rinvex/laravel-cacheable.svg?label=Packagist\u0026style=flat-square)](https://packagist.org/packages/rinvex/laravel-cacheable)\n[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/rinvex/laravel-cacheable.svg?label=Scrutinizer\u0026style=flat-square)](https://scrutinizer-ci.com/g/rinvex/laravel-cacheable/)\n[![Travis](https://img.shields.io/travis/rinvex/laravel-cacheable.svg?label=TravisCI\u0026style=flat-square)](https://travis-ci.org/rinvex/laravel-cacheable)\n[![StyleCI](https://styleci.io/repos/79321486/shield)](https://styleci.io/repos/79321486)\n[![License](https://img.shields.io/packagist/l/rinvex/laravel-cacheable.svg?label=License\u0026style=flat-square)](https://github.com/rinvex/laravel-cacheable/blob/develop/LICENSE)\n\nWhat this package do -technically- caching eloquent query passing through the `get` method, whatever it is and it's smart enough to indicated any conditions, limit, offset, wheres, orders, groups, ..etc and take that criteria into account when caching and checking for cached version. Also by default any create, update, or delete event will flush all cache for that specific model. It uses default Laravel caching system, and utilizes whatever cache driver you are using. Awesome, right?\n\n\n## Installation \u0026 Usage\n\n1. Install the package via composer:\n    ```shell\n    composer require rinvex/laravel-cacheable\n    ```\n\n2. Use the `\\Rinvex\\Cacheable\\CacheableEloquent` in your desired model, and you're done!\n\n3. Seriously, that's it!\n\nCheck the [`CacheableEloquent`](src/CacheableEloquent.php) source code for more awesome stuff if you need advanced control.\n\n\n## Optional Features\n\nYou can optionally override model caching behaviour per model as follows:\n\n```php\n    /**\n     * Indicate if the model cache clear is enabled.\n     *\n     * @var bool\n     */\n    protected $cacheClearEnabled = true;\n\n    /**\n     * The model cache driver.\n     *\n     * @var string\n     */\n    protected $cacheDriver = 'memcached';\n\n    /**\n     * The model cache lifetime.\n     *\n     * @var int\n     */\n    protected $cacheLifetime = -1;\n```\n\n\n## Changelog\n\nRefer to the [Changelog](CHANGELOG.md) for a full history of the project.\n\n\n## Support\n\nThe following support channels are available at your fingertips:\n\n- [Chat on Slack](https://bit.ly/rinvex-slack)\n- [Help on Email](mailto:help@rinvex.com)\n- [Follow on Twitter](https://twitter.com/rinvex)\n\n\n## Contributing \u0026 Protocols\n\nThank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).\n\nBug reports, feature requests, and pull requests are very welcome.\n\n- [Versioning](CONTRIBUTING.md#versioning)\n- [Pull Requests](CONTRIBUTING.md#pull-requests)\n- [Coding Standards](CONTRIBUTING.md#coding-standards)\n- [Feature Requests](CONTRIBUTING.md#feature-requests)\n- [Git Flow](CONTRIBUTING.md#git-flow)\n\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within this project, please send an e-mail to [help@rinvex.com](help@rinvex.com). All security vulnerabilities will be promptly addressed.\n\n\n## About Rinvex\n\nRinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.\n\n\n## License\n\nThis software is released under [The MIT License (MIT)](LICENSE).\n\n(c) 2016-2021 Rinvex LLC, Some rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinvex%2Flaravel-cacheable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinvex%2Flaravel-cacheable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinvex%2Flaravel-cacheable/lists"}