{"id":13726948,"url":"https://github.com/pubkey/oblivious-set","last_synced_at":"2025-04-30T14:42:19.755Z","repository":{"id":57313045,"uuid":"374794723","full_name":"pubkey/oblivious-set","owner":"pubkey","description":"Like a JavaScript Set() but with a TTL for entries","archived":false,"fork":false,"pushed_at":"2024-04-08T00:19:19.000Z","size":21,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-25T13:03:58.708Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pubkey.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":"2021-06-07T20:39:28.000Z","updated_at":"2023-01-17T15:45:59.000Z","dependencies_parsed_at":"2022-09-20T23:10:34.747Z","dependency_job_id":"537ba66e-9a76-452f-b44f-6ce01eaf3194","html_url":"https://github.com/pubkey/oblivious-set","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"8ec419828e1a373caa4f2408f9e5dacb680f2c01"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Foblivious-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Foblivious-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Foblivious-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Foblivious-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubkey","download_url":"https://codeload.github.com/pubkey/oblivious-set/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722829,"owners_count":21633025,"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","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":"2024-08-03T01:03:32.643Z","updated_at":"2025-04-30T14:42:19.727Z","avatar_url":"https://github.com/pubkey.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# oblivious-set\nLike a JavaScript Set() but with a TTL for entries.\n\nIn difference to other caches with TTLs out there, this one does not need intervals or timeouts to work.\nThis means it can be properly garbage collected when there is no more reference to the instance.\n\n\n## Usage\n\n\n```ts\n\nimport { ObliviousSet } from 'oblivious-set';\n\n// create a set\nconst obliviousSet = new ObliviousSet(\n    100 // TTL in milliseconds\n);\n\n// add a value\nobliviousSet.add('foobar');\n\n// check existence\nconsole.log(obliviousSet.has('foobar')); // \u003e true\nconsole.log(obliviousSet.has('barfoo')); // \u003e false\n\n\n// clear\nobliviousSet.clear();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Foblivious-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubkey%2Foblivious-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Foblivious-set/lists"}