{"id":18456111,"url":"https://github.com/jjeffcaii/dcache","last_synced_at":"2026-04-30T13:34:16.537Z","repository":{"id":62421941,"uuid":"340249677","full_name":"jjeffcaii/dcache","owner":"jjeffcaii","description":"A simple Deno LRU cache utilities.","archived":false,"fork":false,"pushed_at":"2021-02-20T14:48:18.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T10:13:57.691Z","etag":null,"topics":["cache","deno","lru"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjeffcaii.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":"2021-02-19T03:38:21.000Z","updated_at":"2024-12-24T09:28:28.000Z","dependencies_parsed_at":"2022-11-01T17:32:57.817Z","dependency_job_id":null,"html_url":"https://github.com/jjeffcaii/dcache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jjeffcaii/dcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjeffcaii%2Fdcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjeffcaii%2Fdcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjeffcaii%2Fdcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjeffcaii%2Fdcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjeffcaii","download_url":"https://codeload.github.com/jjeffcaii/dcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjeffcaii%2Fdcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["cache","deno","lru"],"created_at":"2024-11-06T08:10:15.917Z","updated_at":"2026-04-30T13:34:16.519Z","avatar_url":"https://github.com/jjeffcaii.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno Cache - dcache :t-rex:\n\n![GitHub Workflow Status](https://github.com/jjeffcaii/dcache/workflows/Deno/badge.svg)\n![License](https://img.shields.io/github/license/jjeffcaii/dcache.svg)\n[![GitHub Release](https://img.shields.io/github/release-pre/jjeffcaii/dcache.svg)](https://github.com/jjeffcaii/dcache/releases)\n\nA simple Deno LRU cache utilities.\n\n## Example\n\n```typescript\nimport { create, LRU } from \"https://deno.land/x/dcache/mod.ts\";\n\n// Create a LRU with cap 3.\nconst lru: LRU\u003cstring, number\u003e = create(3);\n\n// Set key/value\nlru.set(\"foo\", 42);\nlru.set(\"bar\", 1024, 1000); // with 1s ttl\nlru.set(\"baz\", 2048);\n\nconsole.log(lru.get(\"foo\")); // print: 42\n\nconsole.log(lru.get(\"bar\")); // print: 1024\nawait new Promise((res) =\u003e setTimeout(res, 1000)); // sleep 1s\nconsole.log(lru.has(\"bar\")); // print: false\n\nlru.set(\"aaa\", 777);\nlru.set(\"bbb\", 888);\n\n// Discards the least recently used item which is \"baz\"\nconsole.log(lru.get(\"baz\")); // print: undefined\n\nconsole.log([...lru.keys()].join(\",\")); // print: bbb,aaa,foo\n\nlru.forEach((v, k) =\u003e console.log(`${k}=${v}`));\n// print:\n// bbb=888\n// aaa=777\n// foo=42\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjeffcaii%2Fdcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjeffcaii%2Fdcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjeffcaii%2Fdcache/lists"}