| DELETE | /devops/api/caches/{location}/regions/{region}/keys/{basekey} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.DTO.Caching.Api.Request
Imports BH.CloudAPI.DTO.Caching.Api.Response
Imports BH.Caching
Namespace Global
Namespace BH.Caching
Public Partial Class CacheDeleteResult
Inherits CacheResultBase
Public Overridable Property IsDeleted As Boolean
End Class
Public Partial Class CacheKey
Public Overridable Property Region As String
Public Overridable Property BaseKey As String
Public Overridable Property Key As String
Public Overridable Property ExpirationSeconds As Integer
End Class
Public Enum CacheLocation
None = 0
OutOfProcess = 1
InProcess = 2
InContext = 3
End Enum
<Flags>
Public Enum CacheResult
None = 0
Miss = 1
Hit = 2
Put = 4
Deleted = 8
Cleared = 16
Added = 32
Updated = 64
Unavailable = 128
Expired = 256
End Enum
Public Partial Class CacheResultBase
Public Overridable Property Result As CacheResult
Public Overridable Property Location As CacheLocation
Public Overridable Property Key As CacheKey
End Class
End Namespace
Namespace BH.CloudAPI.DTO.Caching.Api.Request
Public Partial Class CacheItemDeleteRq
Public Overridable Property location As String
Public Overridable Property region As String
Public Overridable Property baseKey As String
End Class
End Namespace
Namespace BH.CloudAPI.DTO.Caching.Api.Response
Public Partial Class CacheItemDeleteRs
Public Overridable Property Result As CacheDeleteResult
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /devops/api/caches/{location}/regions/{region}/keys/{basekey} HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Result":{"IsDeleted":false,"Result":0,"Location":0}}