{"id":18084520,"url":"https://github.com/endel/memshared","last_synced_at":"2025-04-12T20:08:34.337Z","repository":{"id":50358512,"uuid":"89922522","full_name":"endel/memshared","owner":"endel","description":"Redis-like in-memory database for NodeJS clustered applications","archived":false,"fork":false,"pushed_at":"2023-02-19T02:30:49.000Z","size":77,"stargazers_count":30,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T14:21:24.554Z","etag":null,"topics":["cluster","database","in-memory","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/memshared","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/endel.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":"2017-05-01T12:32:58.000Z","updated_at":"2024-06-14T05:14:05.000Z","dependencies_parsed_at":"2024-06-19T02:57:53.111Z","dependency_job_id":"69a4c59a-741d-4d1d-9c72-22e493c57d77","html_url":"https://github.com/endel/memshared","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":"0.11111111111111116","last_synced_commit":"d5e74a7ca9e97afdbaae0ad90e55a35aff6c989c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fmemshared","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fmemshared/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fmemshared/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fmemshared/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/memshared/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217146,"owners_count":21066633,"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":["cluster","database","in-memory","nodejs"],"created_at":"2024-10-31T15:07:03.647Z","updated_at":"2025-04-12T20:08:34.318Z","avatar_url":"https://github.com/endel.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\n\n# memshared\n\n[![Build Status](https://secure.travis-ci.org/endel/memshared.png?branch=master)](http://travis-ci.org/endel/memshared)\n\nRedis-like in-memory database for NodeJS clustered applications.\n\n## Why?\n\nAdding Redis as a dependency will inevitably increase the complexity to your\napplication and your environment. Use this library if you want to keep a simple\narchitecture while at the same time allow you to migrate to a real in-memory\ndatabase when you feel the need for it.\n\n## Usage\n\n```typescript\nimport * as cluster from \"cluster\";\nimport * as memshared from \"memshared\";\n\nif (cluster.isMaster) {\n  memshared.setup({\n    // setup your initial data\n  });\n\n  cluster.fork();\n\n} else {\n  memshared.set('foo', 'bar');\n\n  memshared.get('foo', function (err, result) {\n    console.log(result);\n  });\n\n  memshared.del('key');\n\n  memshared.sadd('set', 1);\n}\n```\n\n## Usage with PM2\n\nYou'll need a script to start PM2. See [this example](pm2/pm2.js).\n\n```\nnode pm2/pm2.js\n```\n\n## Missing commands\n\nThere are a lot of commands missing. Feel free to pick one of them and send a\npull-request: https://github.com/endel/memshared/issues/7\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fmemshared","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fmemshared","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fmemshared/lists"}