Warning: session_start(): open(/var/lib/php/sessions/sess_80ki7kp3fav0899e43elbu4pnq, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule SingleWordMechListsIndex > DynPrintLog {
transient volatile MultiMap index;
transient volatile bool couldNotLoad;
start {
thread {
try {
dm_useLocalMechListCopies();
LS lists = mechListsWithSingleWords();
index = indexMechLists(lists);
print("Indexed " + n2(lists, "list") + ". " + n2(l(index), "entry", "entries"));
dm_registerAs('aMechListIndex);
} on fail {
set couldNotLoad;
}
}
}
// API
Map getIndex() {
do {
if (couldNotLoad) null;
if (index != null) ret index.data;
sleep(100);
} while (licensed());
null;
}
LS mechListsFor(S s) {
ret mapGet(getIndex(), get(s));
}
}