{"id":24738637,"url":"https://github.com/zweifisch/redis-d1","last_synced_at":"2026-02-11T11:03:02.022Z","repository":{"id":271096902,"uuid":"912323371","full_name":"zweifisch/redis-d1","owner":"zweifisch","description":"redis like api for d1","archived":false,"fork":false,"pushed_at":"2025-01-06T01:16:57.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T21:16:02.721Z","etag":null,"topics":["cloudflare-d1","d1","redis","sqlite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zweifisch.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":"2025-01-05T08:43:42.000Z","updated_at":"2025-01-06T01:17:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d0dca10-8d22-43f6-826f-f75a0b138396","html_url":"https://github.com/zweifisch/redis-d1","commit_stats":null,"previous_names":["zweifisch/redis-d1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/redis-d1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fredis-d1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fredis-d1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fredis-d1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fredis-d1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/redis-d1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fredis-d1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29332292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloudflare-d1","d1","redis","sqlite"],"created_at":"2025-01-27T22:55:10.376Z","updated_at":"2026-02-11T11:03:02.018Z","avatar_url":"https://github.com/zweifisch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-d1\n\nd1 as kv store.\n\n```js\nimport { KV } from 'redis-d1'\n\nconst kv = new KV(ctx.env.db)\n\nawait kv.set('k0', 0)\nawait kv.get('k0') // 0\nawait kv.set('k1', {kv: true})\nawait kv.get('k1') // {kv: true}\n\nawait kv.keys('k*') // ['k0', 'k1']\n```\n\n## Supported Commands\n\n- decr\n- del\n- expire\n- get\n- hdel\n- hget\n- hgetall\n- hset\n- incr\n- keys\n- lindex\n- lpop\n- lpush\n- lrange\n- lrem\n- lset\n- mget\n- mset\n- rpop\n- rpush\n- set\n- ttl\n\n## Multiple Stores\n\n```js\nconst kv2 = new KV(ctx.env.db, {table: 'kv_store2'})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fredis-d1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fredis-d1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fredis-d1/lists"}