# CacheGetMetadata()

returns a structure with some Metadata regarding the cache elements (keys returned depends on the Cache type used).

```
CacheGetMetadata( id=string, cacheName=string );
```

**Returns:** struct

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| id | string | Yes | name of the element you need metadata for *Alias: name, key* |  |
| 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)