--- title: "exists" slug: "cache-exists" updated: 2026-02-04T21:40:27Z published: 2026-02-04T21:40:27Z canonical: "docs.doc-know.com/cache-exists" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # exists ### cache.exists Returns whether or not an item currently exists in cache. ### Input Parameters | Name | Type | Required | Description | | --- | --- | --- | --- | | **key** | Text | Yes | Unique item identifier | ### Returns Type: **Boolean** Returns **true** if item exists in cache. Otherwise, **false** is returned. ### Examples ``` // check if score value is cached if (cache.exists("score") === true) debug.log("Item exists."); ``` ### Remarks Use this function when you need to test if an item already exists in cache memory. Definition **Cache** is a programming term referring to a simple database of information. A cache is a collection of associated **key-value pairs**. The **key** must be a unique identifier and the **value** is any object you want to store. Once stored, you can retrieve these objects using their keys.