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

# cache.invalidate

> Remove a entrada de registro Instance cache em cache da Instance informada.

<div className="real-function-page">
  ```lua theme={null}
  cache.invalidate(instance: Instance)
  ```

  ## Argumentos

  <ParamField path={"instance"} type={"Instance"} required>
    Instance cuja entrada de registro em cache deve ser removida.
  </ParamField>

  ## Exemplo

  Remova uma Instance do cache do Real e verifique se a entrada de cache ainda existe.

  ```lua theme={null}
  local Players = game:GetService("Players")

  cache.invalidate(Players)

  print(cache.iscached(Players))
  ```
</div>
