{"id":24291444,"url":"https://github.com/suttna/botbuilder-redis-storage","last_synced_at":"2025-09-25T16:32:00.867Z","repository":{"id":22762740,"uuid":"97250504","full_name":"suttna/botbuilder-redis-storage","owner":"suttna","description":"Redis storage adapter for Microsoft BotBuilder","archived":false,"fork":false,"pushed_at":"2024-02-01T18:26:57.000Z","size":364,"stargazers_count":14,"open_issues_count":12,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T23:12:36.185Z","etag":null,"topics":["bot","botbuilder","redis"],"latest_commit_sha":null,"homepage":"https://suttna.com","language":"TypeScript","has_issues":true,"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/suttna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-07-14T15:55:02.000Z","updated_at":"2024-05-28T11:28:05.329Z","dependencies_parsed_at":"2022-08-07T10:16:10.727Z","dependency_job_id":"b8fd8a1d-132a-4f65-a122-3bfef10a099d","html_url":"https://github.com/suttna/botbuilder-redis-storage","commit_stats":{"total_commits":56,"total_committers":5,"mean_commits":11.2,"dds":0.3928571428571429,"last_synced_commit":"8623309354f986e312800cc0757c3f18b96e5147"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-redis-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-redis-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-redis-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suttna%2Fbotbuilder-redis-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suttna","download_url":"https://codeload.github.com/suttna/botbuilder-redis-storage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234164055,"owners_count":18789437,"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":["bot","botbuilder","redis"],"created_at":"2025-01-16T14:33:01.606Z","updated_at":"2025-09-25T16:31:55.564Z","avatar_url":"https://github.com/suttna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](logo.png)\n\n# botbuilder-redis-storage [![npm version](https://badge.fury.io/js/botbuilder-redis-storage.svg)](https://badge.fury.io/js/botbuilder-redis-storage) [![CircleCI](https://circleci.com/gh/suttna/botbuilder-redis-storage.svg?style=svg)](https://circleci.com/gh/suttna/botbuilder-redis-storage)  [![codecov](https://codecov.io/gh/suttna/botbuilder-redis-storage/branch/master/graph/badge.svg)](https://codecov.io/gh/suttna/botbuilder-redis-storage) [![Gitter](https://badges.gitter.im/suttna/botbuilder-redis-storage.svg)](https://gitter.im/suttna/botbuilder-redis-storage?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nRedis storage adapter for Microsoft BotBuilder. This class implements the `IBotStorage` interface.\n\n## Install\n\n```\nyarn add botbuilder-redis-storage redis\n```\n\n## Usage\n\nThe storage depends on a redis client instance.\n\n```javascript\nvar redis = require('redis')\nvar RedisStorage = require('botbuilder-redis-storage').RedisStorage\nvar builder = require('botbuilder')\n\n// Initialize redis client\nvar redisClient = redis.createClient(process.env.REDIS_URL, { prefix: 'bot-storage:' });\n\n// Create new storage with redis client\nvar storage = new RedisStorage(redisClient)\n\nvar connector = new builder.ChatConnector()\nvar bot = new builder.UniversalBot(connector)\n\n// Configure bot to use the RedisStorage\nbot.set('storage', storage)\n```\n\n### TTL for conversations\n\nYou can assign a life time for conversations. When enabling this feature, conversations that take longer\nthan the give TTL will be deleted automatically. Be aware that future interactions with the bot after\nstarting the conversation won't change the TTL of the conversation. Use this feature with caution.\n\n```javascript\nstorage.setConversationTTLInSeconds(30 * 60) // 30 minutes\n```\n\n## Test\n\nTo run the tests:\n\n```\nyarn install\nyarn test\n```\n\n## Contact\n\n- Martín Ferández \u003cmartin@suttna.com\u003e\n- Santiago Doldán \u003csantiago@suttna.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuttna%2Fbotbuilder-redis-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuttna%2Fbotbuilder-redis-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuttna%2Fbotbuilder-redis-storage/lists"}