# CacheGetAllIds()

this function return an array containing all keys inside the cache.

```
CacheGetAllIds( filter=string, cacheName=string );
```

**Returns:** array

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| filter | string | No | key filter for the elements, the filter follow the same rules as for cfdirectory-filter. |  |
| cacheName | string | No | definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead. *Alias: cache, region* |  |

# Examples

*There are currently no examples for this function.*







# Categories

[Cache](../../categories/cache.md)