{"id":13781310,"url":"https://github.com/thinkjs/think-session-redis","last_synced_at":"2025-04-06T17:31:39.374Z","repository":{"id":65374834,"uuid":"61360332","full_name":"thinkjs/think-session-redis","owner":"thinkjs","description":"Use Redis store session for ThinkJS 3.x","archived":false,"fork":false,"pushed_at":"2021-10-14T04:02:42.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T03:51:17.546Z","etag":null,"topics":["thinkjs","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}},"created_at":"2016-06-17T08:59:21.000Z","updated_at":"2019-12-23T07:54:59.000Z","dependencies_parsed_at":"2023-01-20T01:35:14.614Z","dependency_job_id":null,"html_url":"https://github.com/thinkjs/think-session-redis","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-session-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-session-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-session-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-session-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkjs","download_url":"https://codeload.github.com/thinkjs/think-session-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522330,"owners_count":20952522,"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":["thinkjs","thinkjs3"],"created_at":"2024-08-03T18:01:24.766Z","updated_at":"2025-04-06T17:31:39.049Z","avatar_url":"https://github.com/thinkjs.png","language":"JavaScript","readme":"# think-session-redis\nUse Redis to store session for ThinkJS\n\n[![Build Status](https://img.shields.io/travis/thinkjs/think-session-redis/master.svg?style=flat-square)](https://travis-ci.org/thinkjs/think-session-redis)\n[![Coverage Status](https://img.shields.io/coveralls/thinkjs/think-session-redis/master.svg?style=flat-square)](https://coveralls.io/github/thinkjs/think-session-redis?branch=master)\n[![npm](https://img.shields.io/npm/v/think-session-redis.svg?colorB=brightgreen\u0026style=flat-square)](https://www.npmjs.com/package/think-session-redis)\n\n\n## Install\n\n```\nnpm install think-session-redis\n```\n\n## How to use\n\nconfig file `src/config/adapter.js`, add options:\n\n```js\nconst redisSession = require('think-session-redis');\nexports.session = {\n  type: 'redis',\n  common: {\n    cookie: {\n      name: 'thinkjs',\n      //maxAge: '',\n      //expires: '',\n      path: '/',  //a string indicating the path of the cookie\n      //domain: '',\n      //secure: false,\n      //keys: [],\n      httpOnly: true,\n      sameSite: false,\n      signed: false,\n      overwrite: false\n    }\n  },\n  redis: {\n    handle: redisSession,\n    maxAge: 3600 * 1000, //session timeout, if not set, session will be persistent.\n    autoUpdate: false, //update expired time when get session, default is false\n  }\n}\n```\n","funding_links":[],"categories":["Adapters"],"sub_categories":["session"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-session-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkjs%2Fthink-session-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-session-redis/lists"}