{"id":14977762,"url":"https://github.com/lostintime/node-redis-liveset","last_synced_at":"2026-02-08T00:02:10.237Z","repository":{"id":52498320,"uuid":"113153934","full_name":"lostintime/node-redis-liveset","owner":"lostintime","description":"A type-safe Redis wrapper to keep a Set eventually synchronized across multiple nodes.","archived":false,"fork":false,"pushed_at":"2021-04-27T16:15:14.000Z","size":34,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:24:58.314Z","etag":null,"topics":["nodejs","redis","typescript"],"latest_commit_sha":null,"homepage":null,"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/lostintime.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":"2017-12-05T08:24:29.000Z","updated_at":"2019-10-22T04:08:51.000Z","dependencies_parsed_at":"2022-09-11T14:41:28.457Z","dependency_job_id":null,"html_url":"https://github.com/lostintime/node-redis-liveset","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-redis-liveset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-redis-liveset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-redis-liveset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostintime%2Fnode-redis-liveset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostintime","download_url":"https://codeload.github.com/lostintime/node-redis-liveset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549118,"owners_count":19980476,"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":["nodejs","redis","typescript"],"created_at":"2024-09-24T13:56:16.519Z","updated_at":"2026-02-08T00:02:10.197Z","avatar_url":"https://github.com/lostintime.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis LiveSet\n=============\n\nA type-safe Redis wrapper to keep a [Set](https://redis.io/topics/data-types#sets) _eventually_ synchronized across multiple nodes.\n\n\n## Installation\n\n```bash\nnpm install --save redis-liveset\n```\n\n## Usage examples\n\nListening for updates\n\n```typescript\nimport { createNumbersLiveSet } from \"redis-liveset\"\nimport * as redis from \"redis\"\nimport { Set } from \"immutable\"\n\nconst sub = redis.createClient()\nconst pub = redis.createClient()\n\nconst liveSet = createNumbersLiveSet(\"my-super-channel\", pub, sub)\n\nliveSet.subscribe((s: Set\u003cnumber\u003e) =\u003e {\n  console.log(\"Set changed: \", s)\n})\n```\n\nChanging Set\n\n```typescript\nimport { createNumbersLiveSet } from \"redis-liveset\"\nimport * as redis from \"redis\"\n\nconst sub = redis.createClient()\nconst pub = redis.createClient()\n\nconst liveSet = createNumbersLiveSet(\"my-super-channel\", pub, sub)\nliveSet.clear()\nliveSet.replaceAll([5,6,7])\nliveSet.add(1)\nliveSet.addAll([10,11])\nliveSet.remove(5)\n```\n\n## Contribute\n\n\u003e Perfection is Achieved Not When There Is Nothing More to Add, \n\u003e But When There Is Nothing Left to Take Away\n\nFork, Contribute, Push, Create pull request, Thanks. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Fnode-redis-liveset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostintime%2Fnode-redis-liveset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostintime%2Fnode-redis-liveset/lists"}