-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #581 from ai16z/new_docs
feat: add new pages
- Loading branch information
Showing
127 changed files
with
2,288 additions
and
1,052 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.