b9d6f73320
RESOLVES CORE-1153 **What** - This pr mainly lay the foundation the caching layer. It comes with a modules (built in memory cache) and a redis provider. - Apply caching to few touch point to test Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
9 lines
236 B
TypeScript
9 lines
236 B
TypeScript
import { asValue } from "awilix"
|
|
|
|
export default async ({ container }) => {
|
|
const xxhashhWasm = await import("xxhash-wasm")
|
|
const { h32ToString } = await xxhashhWasm.default()
|
|
|
|
container.register("hasher", asValue(h32ToString))
|
|
}
|