{"id":18867738,"url":"https://github.com/apix/simple-cache","last_synced_at":"2025-04-14T14:31:36.149Z","repository":{"id":43465755,"uuid":"90147224","full_name":"apix/simple-cache","owner":"apix","description":"The PSR-16 extension to Apix-Cache","archived":false,"fork":false,"pushed_at":"2019-10-31T19:46:29.000Z","size":30,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T23:07:41.107Z","etag":null,"topics":["apcs","api","apic-cache","cache-busting","igbinary","memcached","msgpack","mysql","oracle","pdo","per-simple-cache","psr-16","psr-7","redis","sql","sqlite","tagging"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-03T12:36:48.000Z","updated_at":"2022-07-07T00:40:36.000Z","dependencies_parsed_at":"2022-08-21T07:50:17.703Z","dependency_job_id":null,"html_url":"https://github.com/apix/simple-cache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apix%2Fsimple-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apix%2Fsimple-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apix%2Fsimple-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apix%2Fsimple-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apix","download_url":"https://codeload.github.com/apix/simple-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248897179,"owners_count":21179552,"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":["apcs","api","apic-cache","cache-busting","igbinary","memcached","msgpack","mysql","oracle","pdo","per-simple-cache","psr-16","psr-7","redis","sql","sqlite","tagging"],"created_at":"2024-11-08T05:10:58.732Z","updated_at":"2025-04-14T14:31:35.863Z","avatar_url":"https://github.com/apix.png","language":"PHP","readme":"Apix-SimpleCache, the PSR-16 extension to [Apix-Cache](//github.com/apix/cache)\n=================================\n[![Latest Stable Version](https://poser.pugx.org/apix/simple-cache/v/stable.svg)](https://packagist.org/packages/apix/simple-cache)\n[![Build Status](https://scrutinizer-ci.com/g/apix/simple-cache/badges/build.png?b=master)](https://scrutinizer-ci.com/g/apix/simple-cache/build-status/master)\n[![Code Quality](https://scrutinizer-ci.com/g/apix/simple-cache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/apix/simple-cache/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/apix/simple-cache/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/apix/simple-cache/?branch=master)\n[![License](https://poser.pugx.org/apix/simple-cache/license.svg)](https://packagist.org/packages/apix/simple-cache)\n[![Build Status](https://travis-ci.org/apix/simple-cache.svg?branch=master)](https://travis-ci.org/apix/simple-cache)\n\nApix-SimpleCache provides PSR-16 to **[Apix-Cache](//github.com/apix/cache)** permitting easy caching and invalidation...\n\n* Fully **unit-tested** and compliant with PSR-1, PSR-2, PSR-4 and PSR-16.\n* [Continuously integrated](https://travis-ci.org/apix/simple-cache) with **PHP** **5.3**, **5.4**, **5.5**, **5.6**, **7.0**, **7.1**, **7.2**, **7.3** ~~and HHVM~~.\n\n⇄ *[Pull requests](//github.com/apix/simple-cache/blob/master/.github/CONTRIBUTING.md)* and ★ *Stars* are always welcome. For bugs and feature request, please [create an issue](//github.com/apix/simple-cache/issues/new).\n\n---\n\nBasic usage\n-----------\n\n```php\n  use Apix\\SimpleCache;\n\n  $client = new \\Redis();\n  #$client = new \\PDO('sqlite:...');    // Any supported client object e.g. Memcached, MongoClient, ...\n  #$client = new Cache\\Files($options); // or one that implements Apix\\Cache\\Adapter\n  #$client = 'apc';                     // or an adapter name (string) e.g. \"APC\", \"Runtime\"\n  #$client = new MyArrayObject();       // or even a plain array() or \\ArrayObject.\n\n  $cache = SimpleCache\\Factory::getPool($client);           // without tagging support\n  #$cache = SimpleCache\\Factory::getTaggablePool($client);  // with tagging\n    \n  if ( !$cache-\u003ehas('wibble_id') ) {\n    $data = compute_slow_and_expensive_stuff();\n    $cache-\u003eset('wibble_id', $data);\n  }\n\n  return $cache-\u003eget('wibble_id');\n```\n\nInstallation\n------------------------\n\nThis project adheres to [Semantic Versioning](http://semver.org/) and can be installed using composer:  \n\n    $ composer require apix/simple-cache:1.0.*\n\nAll notable changes to this project are documented in its [CHANGELOG](CHANGELOG.md).\n\nLicense\n-------\nThis work is licensed under the New BSD license -- see the [LICENSE](LICENSE.txt) for the full details.\u003cbr\u003eCopyright (c) 2010-2017 Franck Cassedanne\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapix%2Fsimple-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapix%2Fsimple-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapix%2Fsimple-cache/lists"}