Write([[
redbean mapshared demo
This page displays a unix.mapshared()
hit counter of
the GetPath()
.
]])
Lock()
s = shm:read(SHM_JSON)
if s == '' then s = '{}' end
t = DecodeJson(s)
Unlock()
for k,v in pairs(t) do
Write('- %s
- %d\n' % {EscapeHtml(k), v})
end
Write('
')