Skip to content

Commit

Permalink
add new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
madjin committed Nov 25, 2024
1 parent ac3188b commit e010e77
Show file tree
Hide file tree
Showing 127 changed files with 2,288 additions and 1,052 deletions.
202 changes: 128 additions & 74 deletions docs/api/classes/AgentRuntime.md

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions docs/api/classes/CacheManager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
[@ai16z/eliza v0.1.3](../index.md) / CacheManager

# Class: CacheManager\<CacheAdapter\>

## Type Parameters

**CacheAdapter** *extends* [`ICacheAdapter`](../interfaces/ICacheAdapter.md) = [`ICacheAdapter`](../interfaces/ICacheAdapter.md)

## Implements

- [`ICacheManager`](../interfaces/ICacheManager.md)

## Constructors

### new CacheManager()

> **new CacheManager**\<`CacheAdapter`\>(`adapter`): [`CacheManager`](CacheManager.md)\<`CacheAdapter`\>
#### Parameters

**adapter**: `CacheAdapter`

#### Returns

[`CacheManager`](CacheManager.md)\<`CacheAdapter`\>

#### Defined in

[packages/core/src/cache.ts:93](https://github.com/ai16z/eliza/blob/main/packages/core/src/cache.ts#L93)

## Properties

### adapter

> **adapter**: `CacheAdapter`
#### Defined in

[packages/core/src/cache.ts:91](https://github.com/ai16z/eliza/blob/main/packages/core/src/cache.ts#L91)

## Methods

### get()

> **get**\<`T`\>(`key`): `Promise`\<`T`\>
#### Type Parameters

**T** = `unknown`

#### Parameters

**key**: `string`

#### Returns

`Promise`\<`T`\>

#### Implementation of

[`ICacheManager`](../interfaces/ICacheManager.md).[`get`](../interfaces/ICacheManager.md#get)

#### Defined in

[packages/core/src/cache.ts:97](https://github.com/ai16z/eliza/blob/main/packages/core/src/cache.ts#L97)

***

### set()

> **set**\<`T`\>(`key`, `value`, `opts`?): `Promise`\<`void`\>
#### Type Parameters

**T**

#### Parameters

**key**: `string`

**value**: `T`

**opts?**: [`CacheOptions`](../type-aliases/CacheOptions.md)

#### Returns

`Promise`\<`void`\>

#### Implementation of

[`ICacheManager`](../interfaces/ICacheManager.md).[`set`](../interfaces/ICacheManager.md#set)

#### Defined in

[packages/core/src/cache.ts:116](https://github.com/ai16z/eliza/blob/main/packages/core/src/cache.ts#L116)

***

### delete()

> **delete**(`key`): `Promise`\<`void`\>
#### Parameters

**key**: `string`

#### Returns

`Promise`\<`void`\>

#### Implementation of

[`ICacheManager`](../interfaces/ICacheManager.md).[`delete`](../interfaces/ICacheManager.md#delete)

#### Defined in

[packages/core/src/cache.ts:123](https://github.com/ai16z/eliza/blob/main/packages/core/src/cache.ts#L123)
Loading

0 comments on commit e010e77

Please sign in to comment.