To utilize the MemoryEventBusAdapter, you must create instance of it.

import { MemoryEventBusAdapter } from "@daiso-tech/core";

const eventBusAdapter = new MemoryEventBusAdapter(client);

You can also provide an EVentEmitter.

import { MemoryCacheAdapter } from "@daiso-tech/core";
import { EventEmitter } from "node:events";

const eventEmitter = new EventEmitter();
const eventBusAdapter = new MemoryCacheAdapter("@global", eventEmitter);

Implements

Constructors

Methods