{"id":15196942,"url":"https://github.com/avoidwork/haro-redis","last_synced_at":"2025-10-02T12:30:47.321Z","repository":{"id":34602320,"uuid":"38550282","full_name":"avoidwork/haro-redis","owner":"avoidwork","description":"Redis persistent storage adapter for Harō","archived":true,"fork":false,"pushed_at":"2015-08-31T11:23:26.000Z","size":137,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-21T11:38:16.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avoidwork.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":"2015-07-04T23:07:40.000Z","updated_at":"2023-01-28T15:05:12.000Z","dependencies_parsed_at":"2022-08-03T21:45:15.327Z","dependency_job_id":null,"html_url":"https://github.com/avoidwork/haro-redis","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fharo-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fharo-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fharo-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fharo-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avoidwork","download_url":"https://codeload.github.com/avoidwork/haro-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234991345,"owners_count":18918701,"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-09-28T00:21:41.757Z","updated_at":"2025-10-02T12:30:47.033Z","avatar_url":"https://github.com/avoidwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haro-redis\n\n[![Join the chat at https://gitter.im/avoidwork/haro-redis](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/avoidwork/haro-redis?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n[![build status](https://secure.travis-ci.org/avoidwork/haro-redis.svg)](http://travis-ci.org/avoidwork/haro-redis)\n\n[Harō](http://haro.rocks) is a modern immutable DataStore built with ES6 features, which can be wired to an API for a \ncomplete feedback loop. It is un-opinionated, and offers a plug'n'play solution to modeling, searching, \u0026 managing data \non the client, or server (in RAM). It is a [partially persistent data structure](https://en.wikipedia.org/wiki/Persistent_data_structure), by maintaining version sets of records in `versions` ([MVCC](https://en.wikipedia.org/wiki/Multiversion_concurrency_control)).\n\n***haro-redis*** is a persistent storage adapter, providing 'auto saving' behavior, as well as the ability to \n`save()`, `load()`, \u0026 `unload()` the entire DataStore.\n\n### How to use\nRequire the adapter \u0026 register it with `haro.register(key, fn)`. The key must match the `store.adapters` key. The prefix \nwill be used if set, otherwise `store.id` will be the prefix for localStorage items. Records will be have keys as `prefix_key`, while \nDataStores will be `prefix`.\n\n```javascript\nvar haro = require('haro'),\n    store;\n\n// Configure a store to utilize the adapter\nstore = haro(null, {\n  adapters: {\n    redis: {\n        prefix: \"myData\",\n        port: 6379,\n        host: \"127.0.0.1\",\n        config: {}\n    }\n  }\n});\n\n// Register the adapter\nstore.register('redis', require('haro-redis'));\n\n// Ready to `load()`, `batch()` or `set()`!\n```\n\n## License\nCopyright (c) 2015 Jason Mulligan\nLicensed under the BSD-3 license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Fharo-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favoidwork%2Fharo-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Fharo-redis/lists"}