{"id":13781371,"url":"https://github.com/thinkjs/think-cache-redis","last_synced_at":"2025-07-31T23:03:57.608Z","repository":{"id":73609502,"uuid":"86020406","full_name":"thinkjs/think-cache-redis","owner":"thinkjs","description":"Redis adapter for cache for ThinkJS 3.x","archived":false,"fork":false,"pushed_at":"2021-07-02T00:01:38.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-30T17:50:10.557Z","etag":null,"topics":["cache","redis","think-adapter","thinkjs3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkjs.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}},"created_at":"2017-03-24T02:50:18.000Z","updated_at":"2021-07-02T00:01:36.000Z","dependencies_parsed_at":"2024-01-15T19:58:29.193Z","dependency_job_id":null,"html_url":"https://github.com/thinkjs/think-cache-redis","commit_stats":{"total_commits":35,"total_committers":7,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"9ef886771e3bcdbd9e860efcdb97a78f638ccdb7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thinkjs/think-cache-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-cache-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-cache-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-cache-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-cache-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkjs","download_url":"https://codeload.github.com/thinkjs/think-cache-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-cache-redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267920638,"owners_count":24166039,"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-07-30T02:00:09.044Z","response_time":70,"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":["cache","redis","think-adapter","thinkjs3"],"created_at":"2024-08-03T18:01:25.347Z","updated_at":"2025-07-31T23:03:57.579Z","avatar_url":"https://github.com/thinkjs.png","language":"JavaScript","readme":"# think-cache-redis\n[![Build Status](https://travis-ci.org/thinkjs/think-cache-redis.svg?branch=master)](https://travis-ci.org/thinkjs/think-cache-redis)\n[![Coverage Status](https://coveralls.io/repos/github/thinkjs/think-cache-redis/badge.svg?branch=master)](https://coveralls.io/github/thinkjs/think-cache-redis?branch=master)\n[![npm](https://img.shields.io/npm/v/think-cache-redis.svg?style=flat-square)](https://www.npmjs.com/package/think-cache-redis)\n\nUse redis to cache data\n\n## Install\n\n```\nnpm install think-cache-redis\n```\n\n\n## How to Usage\n\nedit config file `src/config/adapter.js`, add options:\n\n```js\nconst redisCache = require('think-cache-redis');\nexports.cache = {\n  type: 'redis',\n  common: {\n    timeout: 24 * 3600 * 1000 // millisecond\n  },\n  redis: {\n    handle: redisCache,\n    port: 6379,\n    host: '127.0.0.1',\n    password: ''\n  }\n}\n```\nredis config see at https://github.com/luin/ioredis/\n","funding_links":[],"categories":["Adapters"],"sub_categories":["cache"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-cache-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkjs%2Fthink-cache-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-cache-redis/lists"}