# Uuid

The `Uuid` classes provide an interface to connect identifiable models (page, file, site, user, blocks, structure entries) with a dedicated UUID string. It also provides methods to cache these connections for faster lookup.

****

- Full class name: `Kirby\Uuid\Uuid`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Uuid/Uuid.php#L46>

****

### Uuid

- [new Uuid()](https://getkirby.com/docs/reference/objects/uuid/uuid/__construct.md)
- [$uuid->__toString()](https://getkirby.com/docs/reference/objects/uuid/uuid/__to-string.md)
- [$uuid->clear()](https://getkirby.com/docs/reference/objects/uuid/uuid/clear.md)
- [$uuid->context()](https://getkirby.com/docs/reference/objects/uuid/uuid/context.md)
- [Uuid::for()](https://getkirby.com/docs/reference/objects/uuid/uuid/for.md)
- [Uuid::generate()](https://getkirby.com/docs/reference/objects/uuid/uuid/generate.md)
- [$uuid->id()](https://getkirby.com/docs/reference/objects/uuid/uuid/id.md)
- [Uuid::index()](https://getkirby.com/docs/reference/objects/uuid/uuid/index.md)
- [$uuid->indexes()](https://getkirby.com/docs/reference/objects/uuid/uuid/indexes.md)
- [Uuid::is()](https://getkirby.com/docs/reference/objects/uuid/uuid/is.md)
- [$uuid->isCached()](https://getkirby.com/docs/reference/objects/uuid/uuid/is-cached.md)
- [$uuid->key()](https://getkirby.com/docs/reference/objects/uuid/uuid/key.md)
- [$uuid->model()](https://getkirby.com/docs/reference/objects/uuid/uuid/model.md)
- [$uuid->populate()](https://getkirby.com/docs/reference/objects/uuid/uuid/populate.md)
- [Uuid::retrieveId()](https://getkirby.com/docs/reference/objects/uuid/uuid/retrieve-id.md)
- [$uuid->toString()](https://getkirby.com/docs/reference/objects/uuid/uuid/to-string.md)
- [$uuid->toUrl()](https://getkirby.com/docs/reference/objects/uuid/uuid/to-url.md)
- [$uuid->value()](https://getkirby.com/docs/reference/objects/uuid/uuid/value.md)

## Examples

```php
// get UUID string
$model->uuid()->toString();