{"id":19555951,"url":"https://github.com/enikeishik/cachewithlock","last_synced_at":"2025-02-26T07:43:29.127Z","repository":{"id":148296103,"uuid":"405943190","full_name":"enikeishik/cachewithlock","owner":"enikeishik","description":"CacheWithLock package for Laravel framework - overrides remember method of Laravel Cache using lock mechanism to avoid multiply generation of the same data.","archived":false,"fork":false,"pushed_at":"2021-10-02T07:02:32.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T21:27:47.294Z","etag":null,"topics":["cache","caching","laravel","laravel-package","lock","locking","package","php","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enikeishik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-13T11:21:10.000Z","updated_at":"2021-10-09T07:56:20.000Z","dependencies_parsed_at":"2023-05-19T16:30:54.193Z","dependency_job_id":null,"html_url":"https://github.com/enikeishik/cachewithlock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enikeishik%2Fcachewithlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enikeishik%2Fcachewithlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enikeishik%2Fcachewithlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enikeishik%2Fcachewithlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enikeishik","download_url":"https://codeload.github.com/enikeishik/cachewithlock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240814837,"owners_count":19861955,"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","caching","laravel","laravel-package","lock","locking","package","php","php-library"],"created_at":"2024-11-11T04:36:13.495Z","updated_at":"2025-02-26T07:43:29.067Z","avatar_url":"https://github.com/enikeishik.png","language":"PHP","readme":"# CacheWithLock\n\nPackage for [Laravel framework](https://laravel.com/) - \noverrides `remember` method of Laravel Cache using lock mechanism\nto avoid multiply generation of the same data (as a result of \nrace condition) when cache becomes invalid.\n\n## Requirements\n\n*   PHP \u003e= 7.4\n*   Laravel \u003e= 7.0\n\n## Install\n\nInstall (or update) package via [composer](http://getcomposer.org/):\n\n```bash\ncomposer require enikeishik/cachewithlock\n```\n\nMake sure autoload will be changed:\n\n```bash\ncomposer dump-autoload\n```\n\nPublish package via artisan:\n\n```bash\nphp artisan vendor:publish --provider=\"Enikeishik\\CacheWithLock\\ServiceProvider\"\n```\n\nThis command copy configuration file into corresponding project folder.\n\n## Usage\n\nPackage service provider contains an `extend` call to override Laravel Cache class.\nSo there is no need to make any changes in code.\n\nOverriding can be disabled in package configuration.\n\nWithout overriding Laravel Cache use `CacheWithLock` facade:\n\n```php\nuse CacheWithLock;\n\n...\n\n$value = CacheWithLock::remember(...);\n\n...\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenikeishik%2Fcachewithlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenikeishik%2Fcachewithlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenikeishik%2Fcachewithlock/lists"}