You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
persistent kind Internal Server Error when applied to an API with params
Docs
persistent cache must used on method without parameters, otherwise, it will throw error that presents persistent cache cannot applied to method that have parameters.
expected behaviour
it should act like temporal kind with ttl = 0 which means infinity time to live cache
each request should be treated as a separate key
for example : @Get('/uploads/:filename') async getFile(@Param('filename') filename: string){ return await this.service.getFile(fileName); }
in the above example each request scoped under uploads API with a specific file name should have a cache key
if file name is test.png then key should look like this key:uploads/test.png
if file name is guest.png then key should look like this key:uploads/guest.png
make sure to include query params as well
actual behaviour
Internal server error
Great package by the way many thanks
The text was updated successfully, but these errors were encountered:
Issue
persistent kind Internal Server Error when applied to an API with params
Docs
persistent cache must used on method without parameters, otherwise, it will throw error that presents persistent cache cannot applied to method that have parameters.
expected behaviour
it should act like temporal kind with ttl = 0 which means infinity time to live cache
each request should be treated as a separate key
for example :
@Get('/uploads/:filename') async getFile(@Param('filename') filename: string){ return await this.service.getFile(fileName); }
in the above example each request scoped under uploads API with a specific file name should have a cache key
if file name is test.png then key should look like this key:uploads/test.png
if file name is guest.png then key should look like this key:uploads/guest.png
make sure to include query params as well
actual behaviour
Internal server error
Great package by the way many thanks
The text was updated successfully, but these errors were encountered: