Clearing the Redis Storage of the Telerik Reporting REST Service
Environment
Product | Progress® Telerik® Report Server |
---|---|
Version | Current |
Description
When redeploying or restarting an application that uses the Telerik Reporting REST Service, it might be necessary to clear the Reporting REST Service cache stored in Redis. This task can be accomplished through the Redis CLI by deleting all keys associated with the Reporting service. Keys can be identified by the Reporting version used or the HostAppId set in the report service configuration.
This KB article also answers the following questions:
- How do I remove the Reporting REST Service cache from Redis on application restart?
- What is the method to delete Telerik Reporting cache keys in Redis?
- How can I ensure a clean Reporting cache in Redis for a new deployment?
Solution
To clear the Reporting REST Service cache from the Redis database, follow these steps:
- Open the Redis CLI.
-
Use the
KEYS
command to find all keys related to Telerik Reporting. Replace18.1.24.514
with the version of Telerik Reporting used in your application or a pattern that matches your application's HostAppId.redis-cli KEYS "*18.1.24.514*"
-
Delete the identified keys by passing them to the
DEL
command.redis-cli KEYS "*18.1.24.514*" | xargs redis-cli DEL
-
If the command from step 3 does not work for you, examine the output of the command from step 2 and make sure the keys are returned correctly. For example, if they contain spaces you may need to wrap them in quotes:
redis-cli KEYS "*18.1.24.514*" | sed 's/\(.*\)/"\1"/' | xargs redis-cli DEL
By following these steps, you can ensure that the Telerik Reporting REST Service cache in Redis is cleared whenever your application is redeployed or restarted.