{"id":18232817,"url":"https://github.com/hjfitz/redis-utils-json","last_synced_at":"2026-04-10T02:43:54.843Z","repository":{"id":57155289,"uuid":"118234697","full_name":"hjfitz/redis-utils-json","owner":"hjfitz","description":"Tools for storing and retrieving JSON withing Redis - Best for web applications","archived":false,"fork":false,"pushed_at":"2018-01-22T19:35:54.000Z","size":570,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T22:05:23.988Z","etag":null,"topics":["babel","cache","gulp","json","node","redis","typescript"],"latest_commit_sha":null,"homepage":"https://hjfitz.github.io/redis-utils-json","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hjfitz.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":"2018-01-20T11:00:20.000Z","updated_at":"2018-01-21T20:14:37.000Z","dependencies_parsed_at":"2022-08-26T09:50:13.793Z","dependency_job_id":null,"html_url":"https://github.com/hjfitz/redis-utils-json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hjfitz/redis-utils-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fredis-utils-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fredis-utils-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fredis-utils-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fredis-utils-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjfitz","download_url":"https://codeload.github.com/hjfitz/redis-utils-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjfitz%2Fredis-utils-json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261193090,"owners_count":23122904,"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":["babel","cache","gulp","json","node","redis","typescript"],"created_at":"2024-11-04T14:03:46.556Z","updated_at":"2026-04-10T02:43:49.798Z","avatar_url":"https://github.com/hjfitz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Utils for Redis\n\u003e Storing data on your server has never been so easy\n\n**developer docs**: [github pages](https://hjfitz.github.io/redis-utils-json/)\n\n# Intro\nRedis is great, but callback based libraries aren't. I created this library because I work with a lot os JSON responses, and I like to store thise in Redis. Redis is SUPER fast. If you're using Node \u003e6.10, this is the library for you.\n\n# Prerequisites\nthe only requirement is that you have a Redis server running. This is normally on `redis://localhost:6379`, or if you use Heorku - they'll give you the URL.\n\n# Usage\n```js\n// ES5 imports\nconst Redis = require('redis-utils-json');\nconst client = new Redis('some-redis-url');\n\nconst { data, found } = await client.getKey('contentful:fhdjksd');\nif (found) // do something with data\n\nconst keys = await client.getKeys('contentful:*')\n\nawait client.setKey('contentful:fhsdkjf', { oi: 'ayy ' })\n\nawait client.delKey('contentful:fhsdkjf')\n\n// there's a really neat higher order caching function.\n// say you want to cache an API response, you can use Redis#cache\n// this checks redis for the key, and if found, resolves that data,\n// before running the data getting function and updating the store\n// if it's not found, you'll get the result of dataGettingFunction\n// before the store is updated\nconst data = await cache('someKey', dataGettingFunction);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fredis-utils-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjfitz%2Fredis-utils-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjfitz%2Fredis-utils-json/lists"}