Get a segment instance

The cache_service reference used in the code snippet below is the component instance created earlier.

When the segment ID is passed as a parameter, the cache implementation will refer to that particular segment. When the segment ID is not specified explicitly, then it will refer to the default segment.

    
copy
#Get segment instance segment_service = cache_service.segment()

ON THIS PAGE

RELATED LINKS

Cache