Click the Add Action button on the right side and select the Remove From Cache action.
Cache Key Determination
Specify the key of the data to be deleted.
Example: user_123_filters
Using the Cache Provider
The cache provider must be the same as the provider where the data is stored (InMemory and Redis).
Example: Redis for web applications, InMemory for mobile applications.
Running and Testing the Action
Verify that the deletion was successful.
If you are using Redis, you can check whether the key has been deleted by running the command redis-cli -h localhost -p 6379 in the terminal. However, this depends on how Redis is configured. This method will work if the Redis service is active on the server where the generated application is running.
Important Points
If the key is not found in the cache or has been previously deleted, the action returns the error “Given key does not exist.”
The key to be deleted must have been previously added with Push To Cache or Fetch From Cache.
The cache provider must be the same as the provider where the data is stored; otherwise, the deletion will not occur.
When InMemory is selected, the data is already lost when the application is closed.