{"id":29150099,"url":"https://github.com/humanmade/wp-redis-predis-client","last_synced_at":"2025-06-30T23:09:26.767Z","repository":{"id":52504544,"uuid":"100442161","full_name":"humanmade/wp-redis-predis-client","owner":"humanmade","description":"An alternative Redis client for use with WP Redis. Enables TLS connections.","archived":false,"fork":false,"pushed_at":"2025-01-24T17:09:27.000Z","size":90,"stargazers_count":28,"open_issues_count":4,"forks_count":6,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-22T17:10:04.373Z","etag":null,"topics":["cache","predis","redis","wordpress","wp-redis"],"latest_commit_sha":null,"homepage":"","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/humanmade.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-16T03:07:39.000Z","updated_at":"2025-05-20T16:10:31.000Z","dependencies_parsed_at":"2024-06-19T00:08:38.731Z","dependency_job_id":"dd0f1148-47a3-45b1-b4cb-3c8eaeb698b8","html_url":"https://github.com/humanmade/wp-redis-predis-client","commit_stats":{"total_commits":63,"total_committers":9,"mean_commits":7.0,"dds":0.3650793650793651,"last_synced_commit":"ea2b632574e1c943d6d218b5f3da4b9ee5fb903e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/humanmade/wp-redis-predis-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanmade%2Fwp-redis-predis-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanmade%2Fwp-redis-predis-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanmade%2Fwp-redis-predis-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanmade%2Fwp-redis-predis-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humanmade","download_url":"https://codeload.github.com/humanmade/wp-redis-predis-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanmade%2Fwp-redis-predis-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262518209,"owners_count":23323309,"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","predis","redis","wordpress","wp-redis"],"created_at":"2025-06-30T23:09:24.469Z","updated_at":"2025-06-30T23:09:26.758Z","avatar_url":"https://github.com/humanmade.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ctable width=\"100%\"\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"left\" width=\"70\"\u003e\n            \u003cstrong\u003eWP Redis - Predis Client\u003c/strong\u003e\u003cbr /\u003e\n            An alternative Redis client for use with \u003ca href=\"https://github.com/pantheon-systems/wp-redis\"\u003eWP Redis\u003c/a\u003e. Enables TLS connections.\n        \u003c/td\u003e\n        \u003ctd align=\"right\" width=\"20%\"\u003e\n            \u003ca href=\"https://travis-ci.org/humanmade/wp-redis-predis-client\"\u003e\n                \u003cimg src=\"https://travis-ci.org/humanmade/wp-redis-predis-client.svg?branch=master\" alt=\"Build status\"\u003e\n            \u003c/a\u003e\n            \u003ca href=\"https://codecov.io/gh/humanmade/wp-redis-predis-client\"\u003e\n            \u003cimg src=\"https://codecov.io/gh/humanmade/wp-redis-predis-client/branch/master/graph/badge.svg\" alt=\"Codecov\" /\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            A \u003cstrong\u003e\u003ca href=\"https://hmn.md/\"\u003eHuman Made\u003c/a\u003e\u003c/strong\u003e project. Maintained by @nathanielks.\n        \u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003cimg src=\"https://hmn.md/content/themes/hmnmd/assets/images/hm-logo.svg\" width=\"100\" /\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n# WP Redis - Predis Client\n\nThis is a package that enables the use of [Predis](https://github.com/nrk/predis/) as a Redis Client as opposed to PHPRedis for [WP Redis](https://github.com/pantheon-systems/wp-redis/). Predis has the distinct advantage of connecting to Redis via TLS, encrypting traffic in-transit. Requires WP Redis \u003e= 0.7.0.\n\n## Getting Started\n\n### Requiring Files\n#### Composer\n\nWhen using Composer, `functions.php` file will automatically be loaded whenever you include Composer's autoloader in your project.\n\n#### Manually Requiring\n\nThe only file needing `require_once`ing for WP Predis to work correctly is `functions.php` (which is automatically included via `vendor/autoload.php`, which is generated by Composer). Download this repo somewhere in your project, run `composer install`, and include `vendor/autoload.php` somewhere early (such as `wp-config.php`):\n\n```\nrequire_once '/path/to/wp-redis-predis-client/vendor/autoload.php';\n```\n\n### Object Cache stub\n\n\nNow that files have been included, it's recommended you use the included [`object-cache.php`](object-cache.php) file instead of the one included with WP Redis. It will add the required filters for WP Predis to work and then include WP Redis' `object-cache.php` file. Once `object-cache.php` is in `wp-content` (or whatever content directory you are using), you're good to go!\n\n### Configuring Predis\n\nWP Redis - Predis Client adheres to WP Redis' [configuration details](https://github.com/pantheon-systems/wp-redis#installation). Predis also takes an additional argument, `ssl`, for configuring TLS connections. See PHP's [SSL Context options](http://php.net/manual/en/context.ssl.php) for more details.\n\n\n```php\nglobal $redis_server;\n$redis_server = array(\n    'host' =\u003e '127.0.0.1',\n    'port' =\u003e 6379,\n    'ssl'  =\u003e array(\n        'local_cert' =\u003e '/path/to/certificate_and_key.pem',\n        'verify_peer' =\u003e true,\n    ),\n);\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanmade%2Fwp-redis-predis-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumanmade%2Fwp-redis-predis-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanmade%2Fwp-redis-predis-client/lists"}