Get a segment instance

A segment reference can be created using the following method which does not fire a server-side call. The cache reference used in the code snippet below is the component instance.

When you pass the segment id in the parameter, it will refer to the particular segment. When you don’t provide any segment id, it will refer to the default segment.

    
copy
//Refer a cache segment through the segment ID let cache = app.cache(); let segment = cache.segment();

Last Updated 2023-09-03 01:06:41 +0530 +0530

ON THIS PAGE

RELATED LINKS

Cache