---
title: CacheError::Code
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/cache/simple/enum.CacheError-Code/
---

**Kind:** Enum  
**Module:** [simple](https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/cache/simple/)  
**Package:** compute-sdk-cpp 0.7.0  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/cache/simple.h#L20

## Variants

### LimitExceeded

Operation failed due to a limit.

### InvalidOperation

An underlying Core Cache API operation found an invalid state. This should not arise during use of this API. If encountered, please report it as a bug.

### Unsupported

Cache operation is not supported.

### Io

An I/O error occurred.

### Purge

An error occurred when purging a value.

### GetOrSet

An error occurred while running the closure argument of get_or_set_with.

### Other

An unknown error occurred.
