---
title: "pinCacheRoot"
sidebar_label: "pinCacheRoot"
description: "Kotlin binding reference: pinCacheRoot."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ClikaRtAndroid](index.md)/[pinCacheRoot](pinCacheRoot.md)

# pinCacheRoot

[android]\

@[JvmStatic](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html)

fun [pinCacheRoot](pinCacheRoot.md)(context: Context)

Set `XDG_CACHE_HOME` to Context.getCacheDir for this process unless the variable already carries a value, which is kept as it is (the host app's choice, or an earlier pin; this is what makes the call idempotent). One debug-tier log line names which root class is in effect, never the path.