-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache option not working #397
Comments
I have similar:
user.controller.ts
I see a connection to redis:
I have made some GET/POST quieries
|
@zMotivat0r could you provide some info here please? |
same issue here (redis) builder.getQueryAndParameters() can't be used as identifier |
Make sure you have your database up to date using either synchronize or migrations, also consider extending the default duration time (1s) |
Hello, I got the same issue and I think it has never worked. The code is designed to give an array as a key to cache TypeOrm function, the latter needs a string. 2 options are possible the first one would be to concatenate the getQueryAndParameters array or let TypeOrm generates the key. |
Hi,
I'm trying to use typeorm cache using the crud decorator:
And simple typeorm configuration:
but no cache is created.
Exploring
typeorm-crud.service.js
code, I've noticed that cache is implemented like this (line 179):but in this way the whole SQL query is used as identifier, but its db field is a VARCHAR(255), and so no record is created inside cache's table
The text was updated successfully, but these errors were encountered: