{"id":13614986,"url":"https://github.com/zinirun/sequelize-redis-caching","last_synced_at":"2026-01-12T13:16:41.487Z","repository":{"id":122343718,"uuid":"307915078","full_name":"zinirun/sequelize-redis-caching","owner":"zinirun","description":"Redis caching in CRUD works with Sequelize (MySQL)","archived":false,"fork":false,"pushed_at":"2020-10-28T08:06:22.000Z","size":22,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T20:46:38.231Z","etag":null,"topics":["crud","nodejs","redis","sequelize"],"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/zinirun.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}},"created_at":"2020-10-28T05:24:13.000Z","updated_at":"2024-03-08T00:39:28.000Z","dependencies_parsed_at":"2024-01-14T04:45:29.208Z","dependency_job_id":"4b4ce4e2-fb61-4c75-b4eb-7ab51d65f221","html_url":"https://github.com/zinirun/sequelize-redis-caching","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/zinirun%2Fsequelize-redis-caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinirun%2Fsequelize-redis-caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinirun%2Fsequelize-redis-caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinirun%2Fsequelize-redis-caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zinirun","download_url":"https://codeload.github.com/zinirun/sequelize-redis-caching/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223605499,"owners_count":17172498,"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":["crud","nodejs","redis","sequelize"],"created_at":"2024-08-01T20:01:07.805Z","updated_at":"2026-01-12T13:16:40.822Z","avatar_url":"https://github.com/zinirun.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# sequelize-redis-caching\n Redis caching in CRUD with Sequelize (MySQL)\n\n Based on this sample, you can refer to appropriate caching when using Sequelize in CRUD work.\n\n \u003cimg src=\"https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png\" width=\"250px\" /\u003e\n\n## Start\n- Clone this git\n```bash\n$ git clone https://github.com/zinirun/sequelize-redis-caching.git\n```\n- Define your database(MySQL) at `.env`\n```js\nDATABASE = \"YOUR_DATABASE_NAME\"\nDB_USER = \"YOUR_DATABASE_USER\"\nDB_PASSWORD = \"YOUR_DATABASE_PASSWORD\"\nDB_HOST = \"localhost\"\n```\n- Start express\n```bash\n$ yarn install # npm install\n$ yarn start # npm start\n```\n\n\u003e You can define your Redis host `redisHost` at `./admin/admin.ctrl.js` (It assumes Redis Client runs as Host Docker by default)\n\n## Caching Position\nControllers are defined at `./admin/admin.ctrl.js`. Cached data is saved as `JSON.stringify` and loaded as `JSON.parse`.\n\n- Set Cache from Redis (when C, U, D)\n  - `post_products_write`\n  - `post_products_edit`\n  - `post_products_delete`\n\n- Get Cache from Redis (when R)\n  - `get_products`\n    - It uses Promisify function `getAsync`\n    - It accesses Sequelize when redis has no cache","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzinirun%2Fsequelize-redis-caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzinirun%2Fsequelize-redis-caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzinirun%2Fsequelize-redis-caching/lists"}