{"id":15025297,"url":"https://github.com/b3none/php-cache","last_synced_at":"2025-04-09T20:03:45.277Z","repository":{"id":62490871,"uuid":"141343446","full_name":"B3none/php-cache","owner":"B3none","description":"A super simple PHP caching layer.","archived":false,"fork":false,"pushed_at":"2019-07-04T14:03:23.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T20:03:37.387Z","etag":null,"topics":["cache","cache-storage","php","php-7","php7"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B3none.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-17T21:04:09.000Z","updated_at":"2022-02-12T08:07:39.000Z","dependencies_parsed_at":"2022-11-02T11:03:17.405Z","dependency_job_id":null,"html_url":"https://github.com/B3none/php-cache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Fphp-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Fphp-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Fphp-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Fphp-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B3none","download_url":"https://codeload.github.com/B3none/php-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103864,"owners_count":21048245,"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","cache-storage","php","php-7","php7"],"created_at":"2024-09-24T20:02:01.171Z","updated_at":"2025-04-09T20:03:45.242Z","avatar_url":"https://github.com/B3none.png","language":"PHP","readme":"# PHP Cache\nA super simple PHP caching layer.\n\n# Author\n[B3none](https://b3none.co.uk/) - Developer / Maintainer\n\n# Installation\n`composer require b3none/php-cache`\n\n# Example\nThe following is an extract from the [example.php](https://github.com/b3none/php-cache/blob/master/example.php)\n\n```php\n// We can choose to specify the cache dir in the constructor.\n$cacheClient = new \\B3none\\Cache\\CacheClient('/tmp/B3none/cache');\n\n$cacheId = \"b3none\";\nif ($cacheClient-\u003ehasCache($cacheId) \u0026\u0026 $cacheClient-\u003eisFreshEnough($cacheId, 5)) {\n    $cache = $cacheClient-\u003egetCache($cacheId);\n    print_r($cache);\n} else {\n    $dataToCache = [\n        'b3none' =\u003e [\n            'github' =\u003e 'https://github.com/b3none',\n            'steam' =\u003e 'https://steamcommunity.com/b3none'\n        ]\n    ];\n    $cacheClient-\u003esetCache($cacheId, $dataToCache);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3none%2Fphp-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3none%2Fphp-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3none%2Fphp-cache/lists"}