{"id":17857203,"url":"https://github.com/caferrari/cache","last_synced_at":"2025-04-02T18:21:53.237Z","repository":{"id":19527018,"uuid":"22774422","full_name":"caferrari/Cache","owner":"caferrari","description":"Simple caching library","archived":false,"fork":false,"pushed_at":"2014-08-29T18:26:35.000Z","size":164,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T08:47:37.436Z","etag":null,"topics":[],"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/caferrari.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":"2014-08-08T23:32:58.000Z","updated_at":"2016-02-26T11:45:57.000Z","dependencies_parsed_at":"2022-08-21T11:10:54.325Z","dependency_job_id":null,"html_url":"https://github.com/caferrari/Cache","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/caferrari%2FCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caferrari%2FCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caferrari","download_url":"https://codeload.github.com/caferrari/Cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246866239,"owners_count":20846537,"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":[],"created_at":"2024-10-28T03:11:51.819Z","updated_at":"2025-04-02T18:21:53.200Z","avatar_url":"https://github.com/caferrari.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caferrari\\Cache\n[![Build Status](https://secure.travis-ci.org/caferrari/Cache.png)](http://travis-ci.org/caferrari/Cache)\n[![Coverage Status](https://coveralls.io/repos/caferrari/Cache/badge.png?branch=master)](https://coveralls.io/r/caferrari/Cache?branch=master)\n[![Total Downloads](https://poser.pugx.org/ferrari/cache/downloads.png)](https://packagist.org/packages/ferrari/cache)\n[![License](https://poser.pugx.org/ferrari/cache/license.png)](https://packagist.org/packages/ferrari/cache)\n[![Latest Stable Version](https://poser.pugx.org/ferrari/cache/v/stable.png)](https://packagist.org/packages/ferrari/cache)\n[![Latest Unstable Version](https://poser.pugx.org/ferrari/cache/v/unstable.png)](https://packagist.org/packages/ferrari/cache)\n\n## Installation\n\nPackage is available on [Packagist](https://packagist.org/packages/ferrari/cache), you can install it\nusing [Composer](http://getcomposer.org).\n\n```bash\ncomposer require ferrari/cache\n```\n\n## Usage\n\n```php\n\n$driver = new \\Doctrine\\Common\\Cache\\ArrayCache;\n\n$cache = new \\Ferrari\\Cache($driver);\n\n$cache-\u003esave('hello', 'world');\n\necho $cache-\u003efetch('hello'); // 'world'\necho $cache['hello']; // 'world'\n\n$cache-\u003edelete('hello'); // true\n\n$cache-\u003eget('foo', function() {\n    return 'bar';\n}); // 'bar'\n\necho $cache['foo']; // 'bar'\n\n$cache['foo'] = 'walla!';\n\n$cache-\u003eget('foo', function () {\n    'tchubiru'\n}); // 'walla!'\n\nunset($cache['foo']);\n\necho $cache-\u003efetch('foo'); // false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaferrari%2Fcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaferrari%2Fcache/lists"}