Cache
Supported value type
Ped
Vehicle
Object
Blip
ScenarioPoint
Init cache
local cache = Cache()
Add a value to the cache
--- Add a value to the cache
---@param key string
---@param value any
---@return any
function Cache:Add(key, value)
Return wether a value exists
--- Check if a value exists
---@param key string
---@return boolean
function Cache:Has(key)
Get a value from cache
--- Get a value from the cache
---@param key string
---@return any
function Cache:Get(key)
Clear a cache value
--- Clear a value from the cache
---@param key string
---@return Cache
function Cache:ClearValue(key)
Clear the cache
--- Clear whole cache memory
---@return Cache
function Cache:Clear()
Last updated