MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / getTotalMemory

Function getTotalMemory

js/botasaurus-server-js/src/utils.ts:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { getBotasaurusStorage } from 'botasaurus/botasaurus-storage'
7
8function getTotalMemory() {
9 let mem = getBotasaurusStorage().getItem("memory")
10 if (!mem) {
11 mem = totalmem()
12 getBotasaurusStorage().setItem("memory", mem);
13 }
14 return mem;
15}
16
17const targetDirectory = getTargetDirectoryPath()
18

Callers 1

isLargeFileFunction · 0.85

Calls 3

getBotasaurusStorageFunction · 0.90
getItemMethod · 0.45
setItemMethod · 0.45

Tested by

no test coverage detected