---
title: SimpleCacheEntry
summary: Represents an entry retrieved from the SimpleCache.
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/cache/interface.SimpleCacheEntry/
---

**Kind:** Interface  
**Module:** [cache](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/cache/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L128

Represents an entry retrieved from the [SimpleCache](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/cache/class.SimpleCache/).

## Properties

### body

**Type:** `ReadableStream`  
**Flags:** read-only  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L130

Provides access to the entry's contents as a `ReadableStream`.

### bodyUsed

**Type:** `boolean`  
**Flags:** read-only  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L132

Indicates whether the body has been read yet.

## Methods

### arrayBuffer

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L138

```javascript
arrayBuffer(): Promise<ArrayBuffer>
```

Reads the entry's stream to completion and returns the result as an `ArrayBuffer`.

**Returns**

`Promise<ArrayBuffer>`

### json

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L136

```javascript
json(): Promise<object>
```

Reads the entry's stream to completion and parses the result as JSON.

**Returns**

`Promise<object>`

### text

**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/cache.d.ts#L134

```javascript
text(): Promise<string>
```

Reads the entry's stream to completion and returns the result as a string, decoded using UTF-8.

**Returns**

`Promise<string>`
