Registry / database / devebot-co-redis

devebot-co-redis

JSON →
library0.4.1jsnpmunverified

A Redis bridge plugin for Devebot, enabling Redis integration within Devebot applications. Version 0.4.1 is current, released under the MIT license. This package provides a bridge to Redis for Devebot, a Node.js application framework. It is designed specifically for Devebot ecosystems and may not be suitable for standalone Redis usage. The package is maintained as part of the devebot-bridges collection, with a focus on ease of integration and minimal configuration.

npm install devebot-co-redis
INSTALL
IMPORT
SIG · DEVEBOT-CO-REDIS
D
devebot-co-redis
databasejavascriptv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import bridge from 'devebot-co-redis'
const bridge = require('devebot-co-redis')
ESM-only since v0.4.0. CommonJS require is not supported.
RedisBridge
import { RedisBridge } from 'devebot-co-redis'
const RedisBridge = require('devebot-co-redis').RedisBridge
Named export available. TypeScript types may be included.
createRedisClient
import { createRedisClient } from 'devebot-co-redis'
Utility function for creating Redis clients within Devebot context.

Shows how to integrate the Redis bridge plugin into a Devebot application.

import Devebot from 'devebot'; import redisBridge from 'devebot-co-redis'; const app = Devebot(); app.use(redisBridge); app.start().then(() => { console.log('App started with Redis bridge'); }).catch(err => { console.error('Failed to start:', err); });
Debug
Known issues
breakingVersion 0.4.0 dropped CommonJS support. Require() will fail with Module not found.
fix
Use ES module imports (import). If you need CommonJS, stick to version 0.3.x.
affects: >=0.4.0
deprecatedThe 'devebot-co-redis' package is specialized for Devebot. Standalone usage without Devebot may cause unexpected errors.
fix
Use a generic Redis client like 'redis' or 'ioredis' for non-Devebot projects.
affects: >=0.0.0
gotchaRedis connection must be configured via Devebot config. Direct Redis options in bridge constructor are ignored.
fix
Set Redis config in Devebot configuration object under 'redis' key.
affects: >=0.4.0
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'devebot-co-redis'
Using CommonJS require() with ESM-only package.
fix
Change to 'import bridge from "devebot-co-redis";' and ensure project is configured for ES modules.
TypeError: bridge is not a function
Incorrect import: assuming default export is a function when it's an object.
fix
Check the API documentation. Use 'app.use(bridge)' or access specific methods like 'bridge.createClient()'.
Upgrade
Version history
0.4.1latest on npm
Audit
Dependencies
devebotrequiredpeer dependency - requires Devebot framework version ^0.4.0
Agent activity
5 hits · last 30 days
node
4
Resources
devebot-co-redis — npm install devebot-co-redis · libregistry