Fetch From Cache Action Steps

  1. Action Definition
    • Open your project on the Kuika platform.
  • Click the Add Action button on the right side and select the Fetch From Cache action.
  1. Specify Cache Key
  • Select from the menu of keys previously added with Push To Cache.
  • Example: user_123_filters
  1. Use Cache Provider
    • The cache provider must be the same as the data saved with Push To Cache (InMemory, Redis, Mongo, or SQL). If it is not the same, it can be changed in the Cache Settings area of the Configuration Manager module.
    • Example: Redis in the web application, InMemory in the mobile application.
  2. Executing and Testing the Action
    • Run the action in Preview mode.
    • Verify that the correct data is returned in the Output variable.
    • If you are using Redis, you can check the cache by running the redis-cli -h localhost -p 6379 command in the terminal.
  3. Important Points
    • Fetch From Cache can only retrieve keys that were previously added with Push To Cache.
    • The cache provider must be the same as Push To Cache; otherwise, the data cannot be retrieved.
    • When InMemory is selected, the data is deleted when the application is closed.