{"id":15833082,"url":"https://github.com/h3poteto/node-memcached-client","last_synced_at":"2025-04-01T17:32:28.312Z","repository":{"id":37884743,"uuid":"209720474","full_name":"h3poteto/node-memcached-client","owner":"h3poteto","description":"Memcached client for nodejs using typescript","archived":false,"fork":false,"pushed_at":"2023-03-07T08:57:35.000Z","size":514,"stargazers_count":4,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T13:11:05.749Z","etag":null,"topics":["memcached-client","promise","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h3poteto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-09-20T06:26:49.000Z","updated_at":"2022-07-29T14:43:13.000Z","dependencies_parsed_at":"2024-10-05T13:01:28.966Z","dependency_job_id":null,"html_url":"https://github.com/h3poteto/node-memcached-client","commit_stats":{"total_commits":90,"total_committers":3,"mean_commits":30.0,"dds":0.4666666666666667,"last_synced_commit":"2ed40a67fe86f586692cb48bbd2285c7a8a7f9ed"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fnode-memcached-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fnode-memcached-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fnode-memcached-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h3poteto%2Fnode-memcached-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h3poteto","download_url":"https://codeload.github.com/h3poteto/node-memcached-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246631794,"owners_count":20808756,"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":["memcached-client","promise","typescript"],"created_at":"2024-10-05T13:01:18.109Z","updated_at":"2025-04-01T17:32:27.960Z","avatar_url":"https://github.com/h3poteto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-memcached-client\n[![Test](https://github.com/h3poteto/node-memcached-client/actions/workflows/test.yml/badge.svg)](https://github.com/h3poteto/node-memcached-client/actions/workflows/test.yml)\n[![npm](https://img.shields.io/npm/v/memcached-client)](https://www.npmjs.com/package/memcached-client)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/h3poteto/node-memcached-client)](https://github.com/h3poteto/node-memcached-client/releases)\n[![npm](https://img.shields.io/npm/dm/memcached-client)](https://www.npmjs.com/package/memcached-client)\n[![NPM](https://img.shields.io/npm/l/memcached-client)](/LICENSE.txt)\n\nA Memcached client library for node.js. This library written in typescript and define promisified methods.\n\n## Install\n```\n$ npm install memcached-client\n```\n\nor\n\n```\n$ yarn add memcached-client\n```\n\n## Usage\n\n```typescript\nimport Memcached, { Metadata } from 'memcached-client'\n\n// Connect to your memcached server.\nconst client = new Memcached('127.0.0.1', 11211)\n\nconst example = async (client: Memcached) =\u003e {\n  const connection = await client.connect()\n  const code = await connection.set('my-key', 'my-value', false, 0)\n  console.log(code) // =\u003e STORED\n  const data: { [key: string]: Metadata } = await connection.get('my-key')\n  if (data['my-key']) {\n    console.log(data['my-key'].value) // =\u003e my-value\n  }\n  await connection.close()\n}\n\n```\n\nAnd I prepared some [examples](example).\n\n\n## Roadmap\nThis library does not yet cover all memcached methods. But I will implement all methods.\n\n| memcached-client version | v0.1.x  |\n|--------------------------|---------|\n| get                      | ✔       |\n| set                      | ✔       |\n| delete                   | ✔       |\n| gets                     | not yet |\n| cas                      | not yet |\n| replace                  | not yet |\n| append                   | not yet |\n| prepend                  | not yet |\n| incr/decr                | not yet |\n\n\n\n## License\nThe software is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fnode-memcached-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh3poteto%2Fnode-memcached-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh3poteto%2Fnode-memcached-client/lists"}