{"id":19197535,"url":"https://github.com/rikulo/memcached-client","last_synced_at":"2025-05-09T00:44:34.480Z","repository":{"id":8036596,"uuid":"9446580","full_name":"rikulo/memcached-client","owner":"rikulo","description":"Memcached Dart Client Library","archived":false,"fork":false,"pushed_at":"2018-03-31T18:12:50.000Z","size":464,"stargazers_count":9,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-09T00:44:30.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rikulo.org","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikulo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2013-04-15T10:49:34.000Z","updated_at":"2020-01-18T11:04:50.000Z","dependencies_parsed_at":"2022-09-13T15:10:22.179Z","dependency_job_id":null,"html_url":"https://github.com/rikulo/memcached-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fmemcached-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fmemcached-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fmemcached-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fmemcached-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikulo","download_url":"https://codeload.github.com/rikulo/memcached-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171210,"owners_count":21865283,"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-11-09T12:17:13.587Z","updated_at":"2025-05-09T00:44:34.461Z","avatar_url":"https://github.com/rikulo.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Memcached Client\n\n[Memcached Client](http://rikulo.org) is a client implementation in Dart \nlanguage of the famous distributed memory object caching system, [Memcached]\n(http://memcached.org/).\n\n* [Home](http://rikulo.org)\n* [Discussion](http://stackoverflow.com/questions/tagged/rikulo)\n* [Git Repository](https://github.com/rikulo/memcached-client)\n* [Issues](https://github.com/rikulo/memcached-client/issues)\n\nMemcached Client is distributed under the Apache 2.0 License.\n\n##Install from Dart Pub Repository\n\nAdd this to your `pubspec.yaml` (or create it):\n\n    dependencies:\n      memcached_client:\n\nThen run the [Pub Package Manager](http://pub.dartlang.org/doc) (comes with \nthe Dart SDK):\n\n    pub install\n\n##Install from Github for Bleeding Edge Stuff\n\nTo install stuff that is still in development, add this to your `pubspec.yam`:\n\n    dependencies:\n      memcached_client:\n        git: git://github.com/rikulo/memcached-client.git\n\nFor more information, please refer to [Pub: Dependencies]\n(http://pub.dartlang.org/doc/pubspec.html#dependencies).\n\n##Usage\n\nUsing Memcached Client is straightforward. Connect to the server and\nuse the client's APIs to access the database.\n\n    import \"dart:convert\" show UTF8;\n    import \"dart:async\";\n    import \"package:memcached_client/memcached_client.dart\";\n    \n    void main() {\n      // Connect to server per the provided SocketAddress\n      // Here assume your Memcached Server is installed on localhost\n      MemcachedClient.connect([new SocketAddress(\"127.0.0.1\", 11211)])\n      // When client is ready, access the database\n      .then((client) =\u003e access(client))\n      // Catch all possible errors/exceptions\n      .catchError((err) =\u003e print('Exception: $err'));\n    }\n    \n    // The unique document id of the document\n    final String DOC_ID = \"beer_Wrath\";\n    \n    // The Json encoded document\n    final String VALUE =\n      '{\"name\":\"Wrath\",\"abv\":9.0,'\n      '\"type\":\"beer\",\"brewery_id\":\"110f1a10e7\",'\n      '\"updated\":\"2010-07-22 20:00:20\",'\n      '\"description\":\"WRATH Belgian-style \",'\n      '\"style\":\"Other Belgian-Style Ales\",'\n      '\"category\":\"Belgian and French Ale\"}';\n    \n    Future access(MemcachedClient client) {\n      // Do a set\n      return client.set(DOC_ID, encodeUtf8(VALUE))\n      // Check if set succeeded and show message\n      .then((ok) =\u003e print(ok ? \"Set Succeeded\" : \"Set failed\"))\n      // Then get the value back by document id\n      .then((_) =\u003e client.get(DOC_ID))\n      // Check if get data equals to set one\n      .then((val) =\u003e UTF8.decode(val.data) == VALUE)\n      // Show message\n      .then((ok) =\u003e print(ok ? \"Get Succeeded\" : \"Get failed\"))\n      // Close the client\n      .then((_) =\u003e client.close());\n    }\n\n##Notes to Contributors\n\n###Test and Debug\n\nYou are welcome to submit [bugs and feature requests]\n(https://github.com/rikulo/memcached-client/issues). Or even better if you can \nfix or implement them!\n\n###Fork Memcached Client\n\nIf you'd like to contribute back to the core, you can [fork this repository]\n(https://help.github.com/articles/fork-a-repo) and send us a pull request, \nwhen it is ready.\n\nPlease be aware that one of Memcached Client's design goals is to \nkeep the sphere of API as neat and consistency as possible. Strong enhancement \nalways demands greater consensus.\n\nIf you are new to Git or GitHub, please read \n[this guide](https://help.github.com/) first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fmemcached-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikulo%2Fmemcached-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fmemcached-client/lists"}