---
title: URLCache.StoragePolicy.allowedInMemoryOnly
framework: foundation
role: symbol
role_heading: Case
path: foundation/urlcache/storagepolicy/allowedinmemoryonly
---

# URLCache.StoragePolicy.allowedInMemoryOnly

Storage in URLCache is allowed; however storage should be restricted to memory only.

## Declaration

```swift
case allowedInMemoryOnly
```

## See Also

### Policies

- [URLCache.StoragePolicy.allowed](foundation/urlcache/storagepolicy/allowed.md)
- [URLCache.StoragePolicy.notAllowed](foundation/urlcache/storagepolicy/notallowed.md)
