Retrieve Value
get
/ccs/{cacheName}/{key}
Retrieves the value associated with the specified key.
Request
Path Parameters
- cacheName
-
Type:
string
Required:true
Name of cache- key
Type:string
Required:true
Key for the value to be fetched
Response
200 Response
Successful response
Body
Root Schema : value
Type:
string
(binary
)Title:
value
404 Response
Not found
Examples
The following example shows how to retrieve a value from an Oracle Application Cloud Service cache by submitting a GET request on the REST resource using Java code. For the full application, see Sample Application.
Response getResponse = target .path(CACHE_NAME + "/" + testKey) .request(MediaType.APPLICATION_OCTET_STREAM) .get();
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Content-Type: application/octet-stream Date: Wed, 04 Jan 2017 16:45:29 GMT Content-Length: 18
Example of Response Body
The following shows an example of the response body. It’s a string that contains the value associated with the key. In this case, the value associated with the deleted key was the string TheAssociatedValue.
TheAssociatedValue