{"id":21400192,"url":"https://github.com/oefenweb/cakephp-redis","last_synced_at":"2025-07-19T01:32:13.187Z","repository":{"id":19275858,"uuid":"22512428","full_name":"Oefenweb/cakephp-redis","owner":"Oefenweb","description":"Redis (DataSource) Plugin for CakePHP","archived":false,"fork":false,"pushed_at":"2019-01-23T12:26:36.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-06T01:22:42.064Z","etag":null,"topics":["cakephp","cakephp2","datasource","php","plugin","redis"],"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/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"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":"2014-08-01T14:06:17.000Z","updated_at":"2019-01-23T12:26:34.000Z","dependencies_parsed_at":"2022-08-23T18:50:37.971Z","dependency_job_id":null,"html_url":"https://github.com/Oefenweb/cakephp-redis","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Oefenweb/cakephp-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/cakephp-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265210504,"owners_count":23728456,"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":["cakephp","cakephp2","datasource","php","plugin","redis"],"created_at":"2024-11-22T15:19:33.239Z","updated_at":"2025-07-19T01:32:13.167Z","avatar_url":"https://github.com/Oefenweb.png","language":"PHP","readme":"# Redis plugin for CakePHP\n\n[![Build Status](https://travis-ci.org/Oefenweb/cakephp-redis.png?branch=master)](https://travis-ci.org/Oefenweb/cakephp-redis)\n[![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/cakephp-redis/badge.svg)](https://travis-ci.org/Oefenweb/cakephp-redis)\n[![Coverage Status](https://codecov.io/gh/Oefenweb/cakephp-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/cakephp-redis)\n[![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/cakephp-redis.svg)](https://packagist.org/packages/oefenweb/cakephp-redis)\n[![Code Climate](https://codeclimate.com/github/Oefenweb/cakephp-redis/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/cakephp-redis)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Oefenweb/cakephp-redis/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Oefenweb/cakephp-redis/?branch=master)\n\nRedis (DataSource) Plugin for CakePHP\n\n## Requirements\n\n* CakePHP 2.9.0 or greater.\n* PHP 7.0.0 or greater.\n* PhpRedis.\n\n## Installation\n\n### Clone\n\n* Clone/Copy the files in this directory into `app/Plugin/Redis`\n\n### Composer\n\n* Ensure `require` is present in `composer.json`. This will install the plugin into `app/Plugin/Redis`:\n\n```json\n{\n\t\"require\": {\n\t\t\"oefenweb/cakephp-redis\": \"dev-master\"\n\t}\n}\n```\n\n## Configuration\n\n* Ensure the plugin is loaded in `app/Config/bootstrap.php` by calling:\n\n```php\nCakePlugin::load('Redis');\n```\n\n* Ensure the plugin is configured in `app/Config/database.php` by specifying:\n\n```php\n\u003c?php\nclass DATABASE_CONFIG {\n\n\tpublic $redis = [\n\t\t'datasource' =\u003e 'Redis.RedisSource',\n\t\t'host' =\u003e '127.0.0.1',\n\t\t'port' =\u003e 6379,\n\t\t'password' =\u003e '',\n\t\t'database' =\u003e 0,\n\t\t'timeout' =\u003e 0,\n\t\t'persistent' =\u003e false,\n\t\t'unix_socket' =\u003e '',\n\t\t'prefix' =\u003e '',\n\t];\n```\n\n## Usage\n\nGet a (connected / configured) `Redis` instance:\n\n```php\n\u003c?php\nApp::uses('ConnectionManager', 'Model');\n\n$Redis = ConnectionManager::getDataSource('redis');\n```\n\nCall Redis's [ping command](http://redis.io/commands/ping):\n\n```php\n$Redis-\u003eping();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fcakephp-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-redis/lists"}