BioPutWithCopyFree
Function Definition
Writes an object in copy-free mode.
Implementation
CResult BioPutWithCopyFree(uint64_t tenantId, const char *key, CacheSpaceDesc *space)
Parameters
Parameter |
Data Type |
Input/Output |
Description |
|---|---|---|---|
tenantId |
uint64_t |
Input |
Tenant ID. |
key |
uint64_t |
Input |
Object key. |
space |
CacheSpaceDesc* |
Input |
Cache space returned after BioAllocCacheSpace is invoked. |
Return Values
Return Value |
Description |
|---|---|
RET_CACHE_OK |
The operation is successful. |
RET_CACHE_NOT_FOUND |
The cache instance is not found. |
RET_CACHE_EPERM |
The input parameter is incorrect. |
RET_CACHE_NOT_READY |
The BoostIO service is not ready. |
RET_CACHE_NEED_RETRY |
A retry is required. |
RET_CACHE_PT_FAULT |
The object location cannot be written due to a partition error. |
RET_CACHE_ERROR |
The operation failed. |
Parent topic: API Reference