# ICache.get() method · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.icache.get/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Returns the value stored in the cache under the given key.

**Signature:**

```typescript
get(key: string): Promise<any>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| key | string | key to read the value for |


**Returns:**

Promise<any>

the deserialized stored value, or `undefined` when the key is absent or expired

## Remarks

A stored `null` is returned as `null` and is therefore distinguishable from a miss; a stored `undefined` is not. Callers that must tell "cached as empty" from "not cached" should store an explicit sentinel rather than `undefined`.

