đī¸ Cache Management
Cache operations and performance optimization endpoints. 12 endpoints available.
đ¯ Quick Stats
- Total Endpoints: 12
- Base URL:
https://api.market.decenctype.com - Authentication: Bearer Token / API Key
đ Methods
- đ POST: 9 endpoints
- đī¸ DELETE: 2 endpoints
- đ GET: 1 endpoints
đ Authentication
All endpoints in this section use the same authentication methods. Choose one:
đ Bearer Token (Recommended)
For user session authentication
Add to request headers:
Authorization: Bearer YOUR_TOKENđ§ API Key
For server-side authentication
Add to request headers:
X-API-KEY: YOUR_API_KEYâ ī¸ Important: Do not use both authentication methods simultaneously in the same request.
đ Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
đ POST | /cache/invalidate/user/{userId} | Invalidate user cache |
đ POST | /cache/invalidate/merchant/{merchantId} | Invalidate merchant cache |
đ POST | /cache/invalidate/card/{cardId} | Invalidate card cache |
đ POST | /cache/invalidate/card-product | Invalidate card product cache |
đ POST | /cache/invalidate/order | Invalidate order cache |
đ POST | /cache/invalidate/transaction | Invalidate transaction cache |
đ POST | /cache/invalidate/wallet | Invalidate wallet cache |
đ POST | /cache/invalidate/roles-permissions | Invalidate roles and permissions cache |
đ POST | /cache/invalidate/all | Invalidate all cache |
đī¸ DELETE | /cache/key/{key} | Delete specific cache key |
đī¸ DELETE | /cache/pattern/{pattern} | Delete cache by pattern |
đ GET | /cache/stats | Get cache statistics |
đ Detailed Documentation
Invalidate user cache
/cache/invalidate/user/{userId}https://api.market.decenctype.com/cache/invalidate/user/{userId}đ¯ Path Parameters
userId(string) - â Required: User ID
Description: Invalidate user cache
Operation ID: invalidateUserCache
Response Status:
- â 200: User cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/user/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate merchant cache
/cache/invalidate/merchant/{merchantId}https://api.market.decenctype.com/cache/invalidate/merchant/{merchantId}đ¯ Path Parameters
merchantId(string) - â Required: Merchant ID
Description: Invalidate merchant cache
Operation ID: invalidateMerchantCache
Response Status:
- â 200: Merchant cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/merchant/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate card cache
/cache/invalidate/card/{cardId}https://api.market.decenctype.com/cache/invalidate/card/{cardId}đ¯ Path Parameters
cardId(string) - â Required: Card ID
Description: Invalidate card cache
Operation ID: invalidateCardCache
Response Status:
- â 200: Card cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/card/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate card product cache
/cache/invalidate/card-producthttps://api.market.decenctype.com/cache/invalidate/card-productđ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
cardProductId | string | â | Card Product ID |
Description: Invalidate card product cache
Operation ID: invalidateCardProductCache
Response Status:
- â 200: Card product cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/card-product" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate order cache
/cache/invalidate/orderhttps://api.market.decenctype.com/cache/invalidate/orderđ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
orderId | string | â | Order ID |
orderType | string | â | Order Type |
Description: Invalidate order cache
Operation ID: invalidateOrderCache
Response Status:
- â 200: Order cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/order" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate transaction cache
/cache/invalidate/transactionhttps://api.market.decenctype.com/cache/invalidate/transactionđ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transactionId | string | â | Transaction ID |
accountId | string | â | Account ID |
Description: Invalidate transaction cache
Operation ID: invalidateTransactionCache
Response Status:
- â 200: Transaction cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/transaction" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate wallet cache
/cache/invalidate/wallethttps://api.market.decenctype.com/cache/invalidate/walletđ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | â | User ID |
merchantId | string | â | Merchant ID |
Description: Invalidate wallet cache
Operation ID: invalidateWalletCache
Response Status:
- â 200: Wallet cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/wallet" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate roles and permissions cache
/cache/invalidate/roles-permissionshttps://api.market.decenctype.com/cache/invalidate/roles-permissionsđ Authentication: Required (see authentication section above)
Description: Invalidate roles and permissions cache
Operation ID: invalidateRolePermissionCache
Response Status:
- â 200: Roles and permissions cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/roles-permissions" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Invalidate all cache
/cache/invalidate/allhttps://api.market.decenctype.com/cache/invalidate/allđ Authentication: Required (see authentication section above)
Description: Invalidate all cache
Operation ID: invalidateAllCache
Response Status:
- â 200: All cache invalidated successfully
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/cache/invalidate/all" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Delete specific cache key
/cache/key/{key}https://api.market.decenctype.com/cache/key/{key}đ¯ Path Parameters
key(string) - â Required: Cache key
Description: Delete specific cache key
Operation ID: deleteCacheKey
Response Status:
- â 200: Cache key deleted successfully
đ Example Request
curl -X DELETE "https://api.market.decenctype.com/cache/key/example-key" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Delete cache by pattern
/cache/pattern/{pattern}https://api.market.decenctype.com/cache/pattern/{pattern}đ¯ Path Parameters
pattern(string) - â Required: Cache key pattern
Description: Delete cache by pattern
Operation ID: deleteCacheByPattern
Response Status:
- â 200: Cache pattern deleted successfully
đ Example Request
curl -X DELETE "https://api.market.decenctype.com/cache/pattern/example-pattern" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get cache statistics
/cache/statshttps://api.market.decenctype.com/cache/statsđ Authentication: Required (see authentication section above)
Description: Get cache statistics
Operation ID: getCacheStats
Response Status:
- â 200: Cache statistics retrieved successfully
đ Example Request
curl -X GET "https://api.market.decenctype.com/cache/stats" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"