{"id":24042123,"url":"https://github.com/extra-memoize/blackglory-cache-service","last_synced_at":"2025-11-20T02:03:02.860Z","repository":{"id":57682193,"uuid":"481568325","full_name":"extra-memoize/blackglory-cache-service","owner":"extra-memoize","description":"🌿","archived":false,"fork":false,"pushed_at":"2025-08-12T10:31:20.000Z","size":1694,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T10:57:53.453Z","etag":null,"topics":["browser","esm","library","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@extra-memoize/blackglory-cache-service","language":"TypeScript","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/extra-memoize.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-04-14T10:51:18.000Z","updated_at":"2025-08-12T10:31:23.000Z","dependencies_parsed_at":"2025-01-08T22:49:21.216Z","dependency_job_id":null,"html_url":"https://github.com/extra-memoize/blackglory-cache-service","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"0033b4421391a9359c7934fafc01ea78ef21d55b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/extra-memoize/blackglory-cache-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extra-memoize%2Fblackglory-cache-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extra-memoize%2Fblackglory-cache-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extra-memoize%2Fblackglory-cache-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extra-memoize%2Fblackglory-cache-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extra-memoize","download_url":"https://codeload.github.com/extra-memoize/blackglory-cache-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extra-memoize%2Fblackglory-cache-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285359022,"owners_count":27158216,"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-11-20T02:00:05.334Z","response_time":54,"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":["browser","esm","library","nodejs","npm-package","typescript"],"created_at":"2025-01-08T22:37:00.096Z","updated_at":"2025-11-20T02:03:02.848Z","avatar_url":"https://github.com/extra-memoize.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @extra-memoize/blackglory-cache-service\n## Install\n```sh\nnpm install --save @extra-memoize/blackglory-cache-service\n# or\nyarn add @extra-memoize/blackglory-cache-service\n```\n\n## API\n### AsyncCacheService\n```ts\nclass AsyncCacheService\u003cT\u003e implements IAsyncCache\u003cT\u003e {\n  constructor(\n    client: CacheClient\n  , namespace: string\n  , options: {\n      toJSONValue: (value: T) =\u003e JSONValue\n      fromJSONValue: (json: JSONValue) =\u003e T\n\n      timeToLive?: number | null = null\n    }\n  )\n}\n```\n\n### StaleWhileRevalidateAsyncCacheService\n```ts\nclass StaleWhileRevalidateAsyncCacheService\u003cT\u003e implements IStaleWhileRevalidateAsyncCache\u003cT\u003e {\n  constructor(\n    client: CacheClient\n  , namespace: string\n  , options: {\n      toJSONValue: (value: T) =\u003e JSONValue\n      fromJSONValue: (json: JSONValue) =\u003e T\n\n      timeToLive: number\n      staleWhileRevalidate: number\n    }\n  )\n}\n```\n\n### StaleIfErrorAsyncCacheService\n```ts\nclass StaleIfErrorAsyncCacheService\u003cT\u003e implements IStaleIfErrorAsyncCache\u003cT\u003e {\n  constructor(\n    client: CacheClient\n  , namespace: string\n  , options: {\n      toJSONValue: (value: T) =\u003e JSONValue\n      fromJSONValue: (json: JSONValue) =\u003e T\n\n      timeToLive: number\n      staleIfError: number\n    }\n  )\n}\n```\n\n### StaleWhileRevalidateAndStaleIfErrorAsyncCacheService\n```ts\nclass StaleWhileRevalidateAndStaleIfErrorAsyncCacheService\u003cT\u003e implements IStaleWhileRevalidateAndStaleIfErrorAsyncCache\u003cT\u003e {\n  constructor(\n    client: CacheClient\n  , namespace: string\n  , options: {\n      toJSONValue: (value: T) =\u003e JSONValue\n      fromJSONValue: (json: JSONValue) =\u003e T\n\n      timeToLive: number\n      staleWhileRevalidate: number\n      staleIfError: number\n    }\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextra-memoize%2Fblackglory-cache-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextra-memoize%2Fblackglory-cache-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextra-memoize%2Fblackglory-cache-service/lists"}