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()
Yes
No
Send your feedback to us
Skip
Submit