{"id":13411979,"url":"https://github.com/rafaeljesus/tempdb","last_synced_at":"2025-04-27T20:32:48.594Z","repository":{"id":57496807,"uuid":"85341126","full_name":"rafaeljesus/tempdb","owner":"rafaeljesus","description":"Key-value store for temporary items :memo:","archived":false,"fork":false,"pushed_at":"2018-02-14T19:03:13.000Z","size":14,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T20:49:32.750Z","etag":null,"topics":["go","key-value","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rafaeljesus.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-03-17T18:03:42.000Z","updated_at":"2024-04-18T14:17:05.000Z","dependencies_parsed_at":"2022-08-30T04:00:17.204Z","dependency_job_id":null,"html_url":"https://github.com/rafaeljesus/tempdb","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/rafaeljesus%2Ftempdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Ftempdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Ftempdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Ftempdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaeljesus","download_url":"https://codeload.github.com/rafaeljesus/tempdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251204648,"owners_count":21552259,"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":["go","key-value","redis"],"created_at":"2024-07-30T20:01:19.724Z","updated_at":"2025-04-27T20:32:48.357Z","avatar_url":"https://github.com/rafaeljesus.png","language":"Go","funding_links":[],"categories":["Database","数据库","Data Integration Frameworks","数据库  `go语言实现的数据库`","\u003cspan id=\"数据库-database\"\u003e数据库 Database\u003c/span\u003e","數據庫","Generators","Uncategorized"],"sub_categories":["Databases Implemented in Go","Advanced Console UIs","Go中实现的数据库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高級控制台界面","标准 CLI","高级控制台界面"],"readme":"## Tempdb\n\n* TempDB is Redis-backed temporary key-value store for Go.\n* Useful for storing temporary data such as login codes, authentication tokens, and temporary passwords.\n* A Go version of [tempDB](https://github.com/shanev/tempdb)\n\n## Installation\n```bash\ngo get -u github.com/rafaeljesus/tempdb\n```\n\n## Usage\nTempdb stores an expiring (or non-expiring) key/value pair in Redis.\n\n### Tempdb\n```go\nimport \"github.com/rafaeljesus/tempdb\"\n\ntemp, err := tempdb.New(tempdb.Options{\n  Addr: \"localhost:6379\",\n  Password: \"foo\",\n})\n\nif err = temp.Insert(\"key\", \"value\", 0); err != nil {\n  // handle failure insert key\n}\n\nif err = temp.Insert(\"key2\", \"value\", time.Hour); err != nil {\n  // handle failure insert key\n}\n\nif err = temp.Find(\"key\"); err != nil {\n  // handle failure to get value\n}\n\n```\n\n## Contributing\n- Fork it\n- Create your feature branch (`git checkout -b my-new-feature`)\n- Commit your changes (`git commit -am 'Add some feature'`)\n- Push to the branch (`git push origin my-new-feature`)\n- Create new Pull Request\n\n## Badges\n\n[![Build Status](https://circleci.com/gh/rafaeljesus/tempdb.svg?style=svg)](https://circleci.com/gh/rafaeljesus/tempdb)\n[![Go Report Card](https://goreportcard.com/badge/github.com/rafaeljesus/tempdb)](https://goreportcard.com/report/github.com/rafaeljesus/tempdb)\n[![Go Doc](https://godoc.org/github.com/rafaeljesus/tempdb?status.svg)](https://godoc.org/github.com/rafaeljesus/tempdb)\n\n---\n\n\u003e GitHub [@rafaeljesus](https://github.com/rafaeljesus) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Medium [@_jesus_rafael](https://medium.com/@_jesus_rafael) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@_jesus_rafael](https://twitter.com/_jesus_rafael)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljesus%2Ftempdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaeljesus%2Ftempdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljesus%2Ftempdb/lists"}