--- title: "Get Segment Instance" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/cache/get-segment-instance/ service: Cloud Scale type: general related_links: - name: "Cache Help" url: /en/cloud-scale/help/cache/introduction - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # Get a segment instance To know more about the component instance cache_service used below, please refer to this section. 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. #Get segment instance cache_service = app.cache() segment_service = cache_service.segment()