{"id":26223426,"url":"https://github.com/stellaraf/cacheutil","last_synced_at":"2026-04-22T11:35:24.294Z","repository":{"id":59778603,"uuid":"538686408","full_name":"stellaraf/cacheutil","owner":"stellaraf","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-01T20:35:48.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T08:21:12.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stellaraf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T20:31:25.000Z","updated_at":"2023-05-01T17:38:30.000Z","dependencies_parsed_at":"2025-03-12T17:44:14.067Z","dependency_job_id":null,"html_url":"https://github.com/stellaraf/cacheutil","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stellaraf/cacheutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcacheutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcacheutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcacheutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcacheutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellaraf","download_url":"https://codeload.github.com/stellaraf/cacheutil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcacheutil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32134621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"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":[],"created_at":"2025-03-12T17:32:52.123Z","updated_at":"2026-04-22T11:35:19.284Z","avatar_url":"https://github.com/stellaraf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr/\u003e\n  \u003cimg src=\"https://res.cloudinary.com/stellaraf/image/upload/v1604277355/stellar-logo-gradient.svg\" width=\"300\" /\u003e\n  \u003cbr/\u003e\n  \u003ch3\u003eStellar JS Cache Utilities\u003c/h3\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://github.com/stellaraf/cacheutil/actions/workflows/quality.yml\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/stellaraf/cacheutil/quality.yml?branch=main\u0026color=%239100fa\u0026event=push\u0026style=for-the-badge\" /\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n  \u003cbr/\u003e\n\u003c/div\u003e\n\n`@stellaraf/cacheutil` provides a consistent caching API with support for multiple backends in the event that a library requires a cache but could be used on multiple platforms with different caching systems available. For example, if one needed to use a library on both Cloudflare Workers and a standard NodeJS application.\n\n# Supported Backends\n\n## Cloudflare KV\n\n```ts\nimport { createCache } from \"@stellaraf/cacheutil-cache\";\n\nconst cache = createCache(env.KV_BINDING);\n\nawait cache.set(\"key\", \"value\");\nconst value = await cache.get(\"key\");\nconsole.log(value);\n// value\n```\n\n## Redis\n\n```ts\nimport { createCache } from \"@stellaraf/cacheutil-cache\";\n\nconst cache = createCache({ url: \"redis://localhost:6379\", database: 1 });\n\nawait cache.set(\"key\", \"value\");\nconst value = await cache.get(\"key\");\nconsole.log(value);\n// value\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fcacheutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellaraf%2Fcacheutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fcacheutil/lists"}