{"id":19336428,"url":"https://github.com/syarul/rq-redis","last_synced_at":"2025-07-06T22:38:33.427Z","repository":{"id":197112036,"uuid":"698023439","full_name":"syarul/rq-redis","owner":"syarul","description":"requrse middleware plugins for redis","archived":false,"fork":false,"pushed_at":"2023-09-30T05:22:06.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-02T00:42:24.794Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syarul.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":"2023-09-29T01:20:23.000Z","updated_at":"2023-09-29T01:36:32.000Z","dependencies_parsed_at":"2024-11-10T03:11:07.143Z","dependency_job_id":"4cac8878-3fd9-4ee2-8d54-cff3e28341ab","html_url":"https://github.com/syarul/rq-redis","commit_stats":null,"previous_names":["syarul/rq-redis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/syarul/rq-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Frq-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Frq-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Frq-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Frq-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syarul","download_url":"https://codeload.github.com/syarul/rq-redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syarul%2Frq-redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263090436,"owners_count":23412329,"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-11-10T03:11:02.621Z","updated_at":"2025-07-06T22:38:33.409Z","avatar_url":"https://github.com/syarul.png","language":"JavaScript","readme":"# rq-redis\nreQurse middleware plugin for redis.\n\n\n## usage\nmethods:-\n- get\n- find\n- create\n- update\n- getMemberKeys\n- remove\n\n```js\nconst rqRedis = require('rq-redis')\nconst rq = require('requrse')\nconst Redis = require('ioredis')\nrequire('dotenv').config()\n\nconst redis = new Redis(`rediss://default:${process.env.REDIS_KEY}@willing-cowbird-38871.upstash.io:38871`)\n\nconst redisKey = 'books'\nconst memberKey = 'books_ids'\n\nconst modelOptions = {\n  rq, redis, redisKey, memberKey, options: {\n    methods: {}, // new methods\n    config: {} // new config\n  }\n}\n\nrqRedis({\n    book: {\n      create: {\n        $params: {\n          data: {\n            title: 'Foundation',\n            genre: 'Science Fiction'\n          },\n          title: 1 // this will be used as secondary key\n        },\n        title: 1\n      }\n    }\n}, modelOptions).then(r =\u003e {\n  console.log(r) // { book: { create: { title: 'Foundation' } } }\n  redis.disconnect()\n}, console.error)\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyarul%2Frq-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyarul%2Frq-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyarul%2Frq-redis/lists"}