PUT api/cache/List/{listKey}/Prepend?timeToLive={timeToLive}

Adds to the head of an existing list, or creates a new list with the object in it. Processes this cache API request. The parameter and response sections describe the data exchanged with the API.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
listKey

The list key.

string

Required

timeToLive

The time to live.

time interval

None.

Body Parameters

The item to prepend.

Collection of Object

None.

Request Formats

application/x-www-form-urlencoded, application/json, text/json

Sample:

Sample not available.

Response Information

Resource Description

The response returned after the operation completes.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

The version value.

Version

None.

Content

The content value.

HttpContent

None.

StatusCode

The status code classification.

HttpStatusCode

None.

ReasonPhrase

The reason phrase value.

string

None.

Headers

The collection of headers.

Collection of Object

None.

RequestMessage

The request message value.

HttpRequestMessage

None.

IsSuccessStatusCode

Indicates whether this item is success status code.

boolean

None.