import MemorizingMixins from 'causal-net/packages/causality-memcache/src/memorizing.mixins.js'
MemorizingMixins
Extends:
* → MemorizingMixins
This MemorizingMixins class is a mixins class for implement memory methods
Method Summary
Public Methods | ||
public |
async read(memorySlotIndex: String | Number ): * Read content from |
|
public |
async recall(slotIdxs: *): * |
|
public |
async write(memorySlotIndex: String | Number , memory: Array ): Promise |
Public Methods
public async read(memorySlotIndex: String | Number ): * source
Read content from
Params:
Name | Type | Attribute | Description |
memorySlotIndex | String | Number | memory slot index |
Return:
* |
public async recall(slotIdxs: *): * source
Params:
Name | Type | Attribute | Description |
slotIdxs | * |
Return:
* |
public async write(memorySlotIndex: String | Number , memory: Array ): Promise source
Params:
Name | Type | Attribute | Description |
memorySlotIndex | String | Number | positive number for memory slot |
|
memory | Array | value |
Return:
Promise | memory slot index value |