---
title: vfs_authcache_ttl
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.5+]
path: kernel/1523180-vfs_authcache_ttl
---

# vfs_authcache_ttl

Determine the time-to-live of cached authorized credentials for files in this filesystem.

## Declaration

```occ
int vfs_authcache_ttl(mount_t mp);
```

## Parameters

- `mp`: Mount for which to check cache lifetime.

## Return Value

Return Value Cache lifetime in seconds. CACHED_RIGHT_INFINITE_TTL indicates that credentials never expire.

## Discussion

Discussion If a filesystem is set to allow caching credentials, the VFS layer can authorize previously-authorized actions from the same vfs_context_t without calling down to the filesystem (though it will not deny based on the cache).
