{"id":13458138,"url":"https://github.com/nim-lang/redis","last_synced_at":"2025-04-09T16:23:39.272Z","repository":{"id":34027958,"uuid":"37786936","full_name":"nim-lang/redis","owner":"nim-lang","description":"Official redis wrapper for Nim.","archived":false,"fork":false,"pushed_at":"2024-09-26T10:29:55.000Z","size":144,"stargazers_count":126,"open_issues_count":10,"forks_count":35,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-23T18:40:19.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","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/nim-lang.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"copying.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":"2015-06-20T21:39:30.000Z","updated_at":"2025-02-08T12:33:59.000Z","dependencies_parsed_at":"2024-10-29T03:30:38.579Z","dependency_job_id":"c717c2f0-d79c-4846-8a30-5c94a056b10c","html_url":"https://github.com/nim-lang/redis","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-lang%2Fredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nim-lang","download_url":"https://codeload.github.com/nim-lang/redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065907,"owners_count":21041997,"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-07-31T09:00:45.474Z","updated_at":"2025-04-09T16:23:39.240Z","avatar_url":"https://github.com/nim-lang.png","language":"Nim","funding_links":[],"categories":["Async database driver","Uncategorized","Data"],"sub_categories":["Uncategorized","Database"],"readme":"# redis [![CircleCI](https://circleci.com/gh/nim-lang/redis.svg?style=svg)](https://circleci.com/gh/nim-lang/redis)\n\nA redis client for Nim.\n\n## Installation\n\nAdd the following to your `.nimble` file:\n\n```\n# Dependencies\n\nrequires \"redis \u003e= 0.2.0\"\n```\n\nOr, to install globally to your Nimble cache run the following command:\n\n```\nnimble install redis\n```\n\n## Usage\n\n```nim\nimport redis, asyncdispatch\n\nproc main() {.async.} =\n  ## Open a connection to Redis running on localhost on the default port (6379)\n  let redisClient = await openAsync()\n\n  ## Set the key `nim_redis:test` to the value `Hello, World`\n  await redisClient.setk(\"nim_redis:test\", \"Hello, World\")\n\n  ## Get the value of the key `nim_redis:test`\n  let value = await redisClient.get(\"nim_redis:test\")\n\n  assert(value == \"Hello, World\")\n\nwaitFor main()\n```\n\nThere is also a synchronous version of the client, that can be created using the `open()` procedure rather than `openAsync()`.\n\n## License\n\nCopyright (C) 2015, 2017 Dominik Picheta and contributors. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2Fredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnim-lang%2Fredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-lang%2Fredis/lists"}