{"id":23884753,"url":"https://github.com/cachewerk/magento-relay","last_synced_at":"2025-04-09T22:24:10.167Z","repository":{"id":62498914,"uuid":"454837795","full_name":"cachewerk/magento-relay","owner":"cachewerk","description":"A Magento 2 module to integrate Relay.","archived":false,"fork":false,"pushed_at":"2022-12-01T20:30:24.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T00:22:52.939Z","etag":null,"topics":["magento","magento2","redis"],"latest_commit_sha":null,"homepage":"https://relay.so","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/cachewerk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-02T15:52:03.000Z","updated_at":"2024-08-21T19:06:02.000Z","dependencies_parsed_at":"2023-01-22T14:00:17.979Z","dependency_job_id":null,"html_url":"https://github.com/cachewerk/magento-relay","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/cachewerk%2Fmagento-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachewerk%2Fmagento-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachewerk%2Fmagento-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachewerk%2Fmagento-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cachewerk","download_url":"https://codeload.github.com/cachewerk/magento-relay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248121067,"owners_count":21051070,"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":["magento","magento2","redis"],"created_at":"2025-01-04T03:17:57.244Z","updated_at":"2025-04-09T22:24:10.140Z","avatar_url":"https://github.com/cachewerk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento Relay\n\n## Installation\n\nFirst, [install Relay](https://relay.so/docs/installation) as a PHP extension for your CLI and FPM environments.\n\nNext, install the Magento module:\n\n```bash\ncomposer require cachewerk/magento-relay\n```\n\nFinally, activate the module. Relay won't be used until you configure Magento to do so.\n\n```bash\nbin/magento module:enable CacheWerk_Relay\nbin/magento setup:upgrade\n```\n\n## Configuration\n\nIf you're not using Magento's Redis integration for caching and sessions, we recommend configuring and testing that first.\n\n- [Use Redis for session storage](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-session.html)\n- [Use Redis for default cache](https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-pg-cache.html)\n\n### Sessions\n\nTo use Relay as the session backend, simply set `session.redis.client` to `relay` in your `app/etc/env.php`:\n\n```diff\n'session' =\u003e [\n    'save' =\u003e 'redis',\n    'redis' =\u003e [\n+       'client' =\u003e 'relay',\n        'host' =\u003e '127.0.0.1',\n        'port' =\u003e 6379,\n        'database' =\u003e 2,\n        // ...\n    ]\n],\n```\n\n### Cache Backends\n\nRelay can be used for any Redis-enabled cache backend in your `app/etc/env.php`:\n\n```diff\n'cache' =\u003e [\n    'frontend' =\u003e [\n        'default' =\u003e [\n            'id_prefix' =\u003e '5ac_',\n-           'backend' =\u003e 'Magento\\\\Framework\\\\Cache\\\\Backend\\\\Redis',\n+           'backend' =\u003e 'CacheWerk\\\\Relay\\\\Cache\\\\Backend\\\\Relay',\n            'backend_options' =\u003e [\n                'server' =\u003e '127.0.0.1',\n                'port' =\u003e 6379,\n                'database' =\u003e 0,\n                // ...\n            ]\n        ],\n        'page_cache' =\u003e [\n            'id_prefix' =\u003e '5ac_',\n-           'backend' =\u003e 'Magento\\\\Framework\\\\Cache\\\\Backend\\\\Redis',\n+           'backend' =\u003e 'CacheWerk\\\\Relay\\\\Cache\\\\Backend\\\\Relay',\n            'backend_options' =\u003e [\n                'server' =\u003e '127.0.0.1',\n                'port' =\u003e 6379,\n                'database' =\u003e 1,\n                // ...\n            ]\n        ]\n    ],\n],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachewerk%2Fmagento-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcachewerk%2Fmagento-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachewerk%2Fmagento-relay/lists"}