> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StoreValue

> 캐시에 항목을 추가합니다.

캐시에 항목을 추가합니다.

## 구문

```cpp theme={null}
HRESULT StoreValue(
    const void  pKey,
    UINT KeySize,
    const void  pValue,
    UINT ValueSize
)
```

### 매개 변수

*pKey*\
형식: const void \*

추가할 항목의 키입니다.

*KeySize*\
형식: UINT

키의 크기(바이트 단위)입니다.

*pValue*\
형식: const void \*

추가할 항목이 포함된 메모리 블록에 대한 포인터입니다.

*ValueSize*\
형식: UINT

추가할 항목의 크기(바이트 단위)입니다.

### 반환 값

형식: HRESULT

함수가 성공하면 **S\_OK**를 반환합니다. 그렇지 않으면 [**HRESULT**](https://learn.microsoft.com/en-us/windows/desktop/com/structure-of-com-error-codes) [오류 코드](https://learn.microsoft.com/en-us/windows/win32/com/com-error-codes-10)를 반환합니다.

| 반환 값                                | 설명                                       |
| ----------------------------------- | ---------------------------------------- |
| DXGI\_ERROR\_ALREADY\_EXISTS        | 같은 키를 가진 항목이 있습니다.                       |
| DXGI\_ERROR\_CACHE\_HASH\_COLLISION | 제공된 키와 동일한 해시를 가진 항목이 있지만, 키가 일치하지 않습니다. |
| DXGI\_ERROR\_CACHE\_FULL            | 이 항목을 추가하면 캐시가 최대 크기보다 커집니다.             |

## 설명

## 요구 사항

**헤더:** d3d12\_xs.h 또는 d3d12\_x.h\
**라이브러리:** d3d12\_xs.lib 또는 d3d12\_x.lib\
**지원 플랫폼**: XBOX Series 콘솔 및 XBOX One 제품군

## 함께 보기

* [D3D12 셰이더 캐시 API](https://microsoft.github.io/DirectX-Specs/d3d/ShaderCache.html)


## Related topics

- [Microsoft Store v8 Collections b2bLicensePreview API](/ko/reference/microsoft-store-apis/xstore-v8-query-for-products.md)
- [Marketplace 통합 - Microsoft Store](/ko/services/playfab/economy-monetization/economy-v2/marketplace/marketplace-integrations/microsoft.md)
- [collections.mp.microsoft.com/v9.0/collections/publisherQuery](/ko/reference/microsoft-store-apis/xstore-v9-query-for-products.md)
- [검색](/ko/services/playfab/economy-monetization/economy-v2/catalog/search.md)
- [purchase.mp.microsoft.com/v8.0/b2b/orders/query](/ko/reference/microsoft-store-apis/xstore-v8-clawbackv1.md)
