Get the Value of a Cache Key

Description

This API enables you to retrieve the value of a cache item from a segment in the cache. The segment is referred by its unique segment ID, and you must pass the key of the cache item in the request.

Request URL

https://api.catalyst.zoho.com/baas/v1/project/{project_id}/segment/{segment_id}/cache?cacheKey={cache_key}

project_id - The unique ID of the project

segment_id - The unique ID of the cache segment

cache_key - The unique key in a segment whose value needs to be retrieved

Request Header

Authorization: Zoho-oauthtoken 1000.910***************************16.2f****************************57

Request Method

GET

Scope

scope=ZohoCatalyst.cache.READ

SDK documentation

Retrieve Data from Cache- Java SDK

Retrieve Data from Cache- Node.js SDK

Sample Request


				curl -X GET  \
https://api.catalyst.zoho.com/baas/v1/project/4000000006007/segment/31000000006023/cache?cacheKey=counter \
-H "Authorization: Zoho-oauthtoken 1000.910***************************16.2f****************************57"			

Sample Response


				{
    "status": "success",
    "data": {
        "cache_name": "counter",
        "cache_value": "1344",
        "project_details": {
            "id": 4000000006007,
            "project_name": "ShipmentTracking"
        },
        "segment_details": {
            "id": 31000000006023,
            "segment_name": "MailCounters"
        },
        "expires_in": "2019-03-13T18:36:02+05:30",
        "expiry_in_hours": 3
    }
}