refactor(cache): documented the cache in preparation to upstream

This commit is contained in:
Folke Lemaitre 2023-03-14 12:56:58 +01:00
parent 5550f99271
commit 1a34636094
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 52 additions and 18 deletions

View file

@ -476,7 +476,7 @@ end
---@param modname string
function M.loader(modname)
local paths = Util.get_unloaded_rtp(modname)
local modpath, hash = Cache._Cache.find(modname, { rtp = false, paths = paths })
local modpath, hash = Cache.find(modname, { rtp = false, paths = paths })
if modpath then
M.auto_load(modname, modpath)
local mod = package.loaded[modname]