{"id":17358859,"url":"https://github.com/muke1908/as-store","last_synced_at":"2025-09-01T04:41:08.797Z","repository":{"id":90450636,"uuid":"178201689","full_name":"muke1908/as-store","owner":"muke1908","description":"localstorage wrapper with Async write support","archived":false,"fork":false,"pushed_at":"2019-05-07T13:41:05.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T16:17:29.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muke1908.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-28T12:44:35.000Z","updated_at":"2021-02-21T00:07:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"647963b0-8279-4e55-adba-ac0bfcc9a78d","html_url":"https://github.com/muke1908/as-store","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muke1908/as-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fas-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fas-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fas-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fas-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muke1908","download_url":"https://codeload.github.com/muke1908/as-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fas-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273075782,"owners_count":25041250,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-15T19:07:19.218Z","updated_at":"2025-09-01T04:41:08.748Z","avatar_url":"https://github.com/muke1908.png","language":"JavaScript","readme":"# Asynchronous local storage  (Write through cache)\nA local storage wrapper, that helps to write data to disk asynchronously. It uses in-mem cache for faster \"READ\" \n\n## Install  \n`npm install as-store`\n\n## Usage  \n\n### Methods: \n1) `AsStore.setItem(key, value)` - set `value` for `key` in `as-store`  \n2) `AsStore.getItem(key)` - lookup data for `key` from `as-store`  \n3) `AsStore.removeItem(key)` - remove `key` from `as-store`  \n4) `AsStore.flush()` - flush all the data from `as-store`  \n5) `AsStore.onWriteComplete(function)` - attach handler to disk \"WRITE\". `funciton` will be called when writing to disk.  \n\n### Why it's fast and non-blocking ?\n`setItem` - doesn't write the data to disk immediately. Non-blocking. Process multiple write operation at once (with 500ms throttling).  \n`getItem` - doesn't read data from disk. It maintain a hash map in client. It directly returns data from memory.  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fas-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuke1908%2Fas-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fas-store/lists"}