From 701d59c83a64bf5aa73f2bc386a0cdba087349c4 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 30 Mar 2026 23:51:59 +0800 Subject: update more comments --- xmake/core/project/cache.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'xmake/core/project/cache.lua') diff --git a/xmake/core/project/cache.lua b/xmake/core/project/cache.lua index 280df52e8..669ec1a03 100644 --- a/xmake/core/project/cache.lua +++ b/xmake/core/project/cache.lua @@ -86,22 +86,30 @@ function cache._instance(scopename) return instance end --- get the value +-- get the cached value +-- +-- @param name the cache key +-- @return the cached value +-- function cache:get(name) return self._CACHEDATA[name] end --- set the value +-- set the cached value +-- +-- @param name the cache key +-- @param value the value to cache +-- function cache:set(name, value) self._CACHEDATA[name] = value end --- clear all +-- clear all cached values function cache:clear() self._CACHEDATA = {__version = xmake._VERSION_SHORT} end --- flush to cache file +-- flush cached values to file function cache:flush() -- flush the version -- cgit v1.3.1