move session library implementation to a separate module

This commit is contained in:
MihailRis 2026-03-18 21:48:23 +03:00
parent 4615a425e2
commit c9f9838747
2 changed files with 18 additions and 17 deletions

View file

@ -0,0 +1,17 @@
local entries = {}
local this = {}
function this.get_entry(name)
local entry = entries[name]
if entry == nil then
entry = {}
entries[name] = entry
end
return entry
end
function this.reset_entry(name)
entries[name] = nil
end
return this