{"id":24694461,"url":"https://github.com/roadrunner-php/kv","last_synced_at":"2025-10-09T01:31:06.363Z","repository":{"id":48106123,"uuid":"255849669","full_name":"roadrunner-php/kv","owner":"roadrunner-php","description":":electric_plug: RoadRunner Key-Value storage SDK","archived":false,"fork":false,"pushed_at":"2025-05-05T13:09:20.000Z","size":218,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"4.x","last_synced_at":"2025-09-27T22:31:12.210Z","etag":null,"topics":["boltdb","cache","caching-library","memcached","memory","php","redis","roadrunner"],"latest_commit_sha":null,"homepage":"https://roadrunner.dev","language":"PHP","has_issues":false,"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/roadrunner-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"roadrunner-server"}},"created_at":"2020-04-15T08:14:25.000Z","updated_at":"2025-09-08T15:14:28.000Z","dependencies_parsed_at":"2024-02-07T21:40:15.950Z","dependency_job_id":null,"html_url":"https://github.com/roadrunner-php/kv","commit_stats":null,"previous_names":["spiral/roadrunner-kv"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/roadrunner-php/kv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fkv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fkv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fkv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fkv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roadrunner-php","download_url":"https://codeload.github.com/roadrunner-php/kv/tar.gz/refs/heads/4.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fkv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000725,"owners_count":26082895,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["boltdb","cache","caching-library","memcached","memory","php","redis","roadrunner"],"created_at":"2025-01-26T23:59:47.240Z","updated_at":"2025-10-09T01:31:06.020Z","avatar_url":"https://github.com/roadrunner-php.png","language":"PHP","funding_links":["https://github.com/sponsors/roadrunner-server"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://roadrunner.dev\" target=\"_blank\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/roadrunner-server/.github/assets/8040338/e6bde856-4ec6-4a52-bd5b-bfe78736c1ff\"\u003e\n    \u003cimg align=\"center\" src=\"https://github.com/roadrunner-server/.github/assets/8040338/040fb694-1dd3-4865-9d29-8e0748c2c8b8\"\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n# RoadRunner KV Plugin Bridge\n\n[![PHP Version Require](https://poser.pugx.org/spiral/roadrunner-kv/require/php)](https://packagist.org/packages/spiral/roadrunner-kv)\n[![Latest Stable Version](https://poser.pugx.org/spiral/roadrunner-kv/v/stable)](https://packagist.org/packages/spiral/roadrunner-kv)\n[![phpunit](https://github.com/spiral/roadrunner-kv/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/roadrunner-kv/actions)\n[![psalm](https://github.com/spiral/roadrunner-kv/actions/workflows/psalm.yml/badge.svg)](https://github.com/spiral/roadrunner-kv/actions)\n[![Total Downloads](https://poser.pugx.org/spiral/roadrunner-kv/downloads)](https://packagist.org/packages/spiral/roadrunner-kv)\n\n\u003cb\u003e[Documentation](https://docs.roadrunner.dev/key-value/overview-kv)\u003c/b\u003e | [Framework Bundle](https://github.com/spiral/framework)\n\nThis repository contains the codebase PSR-16 PHP cache bridge using kv RoadRunner plugin.\n\n## Installation\n\nTo install application server and KV codebase\n\n```bash\ncomposer require spiral/roadrunner-kv\n```\n\nYou can use the convenient installer to download the latest available compatible\nversion of RoadRunner server:\n\n```bash\ncomposer require spiral/roadrunner-cli --dev\nvendor/bin/rr get\n```\n\n## Usage\n\nFirst you need to add at least one kv plugin to your roadrunner configuration. \nFor example, such a configuration would be quite feasible to run:\n\n```yaml\nrpc:\n  listen: tcp://127.0.0.1:6001\n\nkv:\n  test:\n    driver: memory\n    config:\n        interval: 10\n```\n\n\u003e **Note**\n\u003e Read more about all available drivers on the \n\u003e [documentation](https://docs.roadrunner.dev) page.\n\nAfter starting the server with this configuration, one driver named \"`test`\" \nwill be available to you.\n\nThe following code will allow writing and reading an arbitrary value from the \nRoadRunner server.\n\n```php\n\u003c?php\n\nuse Spiral\\Goridge\\RPC\\RPC;\nuse Spiral\\RoadRunner\\KeyValue\\Factory;\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$factory = new Factory(RPC::create('tcp://127.0.0.1:6001'));\n\n$cache = $factory-\u003eselect('test');\n\n// After that you can write and read arbitrary values:\n\n$cache-\u003eset('key', 'value');\n\necho $cache-\u003eget('key'); // string(5) \"value\"\n```\n\n\u003ca href=\"https://spiral.dev/\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/773481/220979012-e67b74b5-3db1-41b7-bdb0-8a042587dedc.jpg\" alt=\"try Spiral Framework\" /\u003e\n\u003c/a\u003e\n\n## License:\n\nMIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadrunner-php%2Fkv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froadrunner-php%2Fkv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadrunner-php%2Fkv/lists"}