{"id":16296864,"url":"https://github.com/windomz/mtoi","last_synced_at":"2025-04-09T13:31:40.119Z","repository":{"id":83794844,"uuid":"106935859","full_name":"WindomZ/mtoi","owner":"WindomZ","description":":memo: Key-Value structures: KV, Slice, Cache","archived":false,"fork":false,"pushed_at":"2017-12-11T15:53:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:40:42.213Z","etag":null,"topics":["cache","golang-library","key-value","slice"],"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/WindomZ.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-10-14T14:46:18.000Z","updated_at":"2017-12-23T06:54:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a38a59b9-9cad-48e4-a23c-cfcedc396e14","html_url":"https://github.com/WindomZ/mtoi","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/WindomZ%2Fmtoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fmtoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fmtoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fmtoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/mtoi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049164,"owners_count":21039167,"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":["cache","golang-library","key-value","slice"],"created_at":"2024-10-10T20:24:12.878Z","updated_at":"2025-04-09T13:31:40.092Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mtoi\n\n[![Build Status](https://travis-ci.org/WindomZ/mtoi.svg?branch=master)](https://travis-ci.org/WindomZ/mtoi)\n[![Coverage Status](https://coveralls.io/repos/github/WindomZ/mtoi/badge.svg?branch=master)](https://coveralls.io/github/WindomZ/mtoi?branch=master)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FWindomZ%2Fmtoi.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fmtoi?ref=badge_shield)\n\n\u003e Key-Value structures: KV, Slice, Cache...\n\n## Feature\n\n- **Key-Value** base storage structure.\n- **Non-blocking** to write.\n- **sync.Map** if \u003e= go1.9.\n\n### KV([kv.go](./kv.go))\n- Value is **single** instance.\n```\nPut(k string, v interface{})\nGet(k string) (v interface{}, ok bool)\n```\n\n### Slice([slice.go](./slice.go))\n- Value is go **slice** structure.\n```\nPut(k string, v interface{})\nGet(k string) (v []interface{}, ok bool)\n```\n\n### Cache([cache.go](./cache.go))\n- Value is **single** instance.\n- Support **expire** time.\n```\nPut(k string, v interface{}, expire time.Duration)\nGet(k string) (v interface{}, ok bool)\n```\n\n## Contributing\n\nWelcome to pull requests, report bugs, suggest ideas and discuss \n**mtoi** on [issues page](https://github.com/WindomZ/mtoi/issues).\n\nIf you like it then you can put a :star: on it.\n\n## License\n\n[MIT](https://github.com/WindomZ/mtoi/blob/master/LICENSE)\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FWindomZ%2Fmtoi.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fmtoi?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fmtoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fmtoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fmtoi/lists"}