# CacheGetAllIds

Get all the keys in the cache.

If no cache name is provided, the default cache is used. If a filter is provided, only keys that match the filter will be returned. A filter is a simple string that can contain wildcards and will leverage the {@link WildcardFilter} to match keys.

## Method Signature

```
CacheGetAllIds(filter=[string], cacheName=[string], useRegex=[boolean])
```

### Arguments

| Argument    | Type      | Required | Description                                                                                                                       | Default   |
| ----------- | --------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `filter`    | `string`  | `false`  | The filter to apply to the keys, this can be a simple Wildcard filter or a regex filter. The default is a simple wildcard filter. |           |
| `cacheName` | `string`  | `false`  | The name of the cache to get the keys from. Default is the default cache.                                                         | `default` |
| `useRegex`  | `boolean` | `false`  | If true, the filter will be treated as a full regular expression filter. Default is false.                                        | `false`   |

## Examples

## Related

* [CacheClear](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheclear)
* [CacheCount](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachecount)
* [cacheDelete](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachedelete)
* [CacheGet](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheget)
* [CacheGetAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetall)
* [CacheGetAsAttempt](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetasattempt)
* [CacheGetDefaultCacheName](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetdefaultcachename)
* [CacheGetEngineProperties](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetengineproperties)
* [CacheGetMetadata](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetmetadata)
* [CacheGetOrFail](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetorfail)
* [CacheGetProperties](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetproperties)
* [CacheGetSession](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachegetsession)
* [CacheIdExists](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheidexists)
* [cacheKeyExists](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachekeyexists)
* [CachePut](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheput)
* [CacheRegionExists](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheregionexists)
* [CacheRegionNew](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheregionnew)
* [CacheRegionRemove](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheregionremove)
* [CacheRemove](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheremove)
* [CacheRemoveAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cacheremoveall)
* [CacheSetProperties](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/cache/cachesetproperties)
