Cache Manager is a client-side utility component designed to simplify the handling of browser storage in OutSystems applications. It exposes a set of APIs that enable developers to interact with the browser’s sessionStorage in a structured and consistent way. With Cache Manager, you can:
sessionStorage
Set data: Store key-value pairs in session storage, either as plain strings or serialized JSON objects.
Get data: Retrieve stored values by key, with support for parsing JSON-formatted entries.
Remove data: Delete specific items from session storage without affecting other cached data.
Clear all data: Empty the entire session storage for the current browser session.
By abstracting common storage operations, Cache Manager reduces the need for repetitive JavaScript coding and ensures consistent cache handling across applications. It is particularly useful for managing temporary session-level data that does not need to be persisted on the server side.
Note: No API's used.