Cache Settings is a feature used to improve your application's data performance and speed up data access. By configuring cache settings in Kuika's Configuration Manager module, you can enable your application to access data faster and reduce server load.
Cache settings are available for both web and mobile applications.
Cache Settings Steps
Create a Configuration
Log in to the Kuika platform.
Select the project you want to work on from the Apps screen and open it.
Click on the Configuration Manager module.
Click on the Configuration button on the screen that opens.
Enter a meaningful name for the configuration (e.g., “MainCacheConfig”) and click on the CREATE button to complete the process.
Select Cache Type
Open the configuration you just created and go to the CACHE SETTINGS section.
Configure the following fields:
Name: Name to be given to the cache configuration. If you are going to use multiple caches in your application, use a unique name to distinguish between them.
Type: Select the data provider to be used:
Redis: Memory-based, high-performance, and fast data access. Suitable for frequently accessed data.
Mongo: NoSQL, document-based database; suitable for large data and complex data models with its flexible and scalable structure.
SQL: Relational database; ensures organized data storage with powerful query capabilities and table structure.
Memory: Stores data in temporary memory. Data is deleted when the application is closed, making it suitable for temporary processes that require fast access.
Connection Settings: Enter the server information, port number, and authentication information required to connect to the selected cache provider.
Additional Settings and Tips
Cache size and duration: Specify how long data should be retained in the cache. Short-term caching improves performance when long-term data storage is not required.
Prioritization: Add critical data and frequently accessed data types to the cache with priority.
Testing and monitoring: Use the Preview or test mode to verify that the cache is functioning correctly.
Test the Settings
Click on the three dots next to the Preview button at the top of the application.
Click on the RUN button in the menu that appears.
When the process is complete, the cache configuration will run on the test screen and you can observe the performance increase.
After saving the cache settings, the platform automatically enables the data caching mechanism and optimizes your application's data access speed.