Comments (2)
did you manage to fix this?
from loopback-connector-redis.
You are correct : the 'database' property is what you are looking. Check below my redis.datasource.ts
@lifeCycleObserver('datasource')
export class RedisDataSource extends juggler.DataSource implements LifeCycleObserver {
static dataSourceName = 'redis';
constructor(
@Inject('datasources.config.redis', { optional: true })
dsConfig: object = { ...config },
) {
// Override data source config from environment variables
Object.assign(dsConfig, {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
password: process.env.REDIS_PASSWORD,
db: process.env.REDIS_DATABASE,
url: process.env.REDIS_URL,
});
super(dsConfig);
}
from loopback-connector-redis.
Related Issues (20)
- Docs HOT 2
- Support ioredis HOT 1
- "TypeError: Cannot read property 'package' of undefined" while adding datasource HOT 3
- No indexes found for <fieldname> impossible to sort and filter using redis connector HOT 10
- `database` will cause error HOT 3
- Use ESLint instead of JSHint HOT 1
- Re-enable test cases
- "idInjection": false doesn't work
- destroyById crashes the app when model with the id does not exist HOT 16
- Where filter not working. HOT 7
- Upserting an existing records returns all fields as strings HOT 2
- The function destroyAll fails with error HOT 4
- crashes the application on connection-errors HOT 1
- Error: ERR wrong number of arguments for HMSET
- strong-globalize can't process error object
- Bad value stored for a foreign key that is a string. HOT 1
- Lost relation between AccessToken and User when using AccessToken stored in redis HOT 3
- Broken CLA Link HOT 1
- Is the transactional feature implemented ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loopback-connector-redis.