WoW ItemCache addon Dragonflight/Wrath of the Lich King Classic 2024
wow addon ItemCache


Game Version: 3.4.0 +1
Total Downloads: 1,064
Updated: Sep 25, 2022
Created: Mar 9, 2022
download ItemCacheDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.4.0 release 131.84 KB Sep 25, 2022 3.4.0 +1 225 download ItemCache 1.4.0 releaseDownload
1.3.0 release 131.93 KB Sep 7, 2022 3.4.0 +2 469 download ItemCache 1.3.0 releaseDownload
1.2.0 release 133.00 KB Jun 22, 2022 1.14.3 +1 196 download ItemCache 1.2.0 releaseDownload
1.1.0 release 132.77 KB May 23, 2022 1.14.3 +1 107 download ItemCache 1.1.0 releaseDownload
1.0.0 release 132.71 KB May 20, 2022 1.14.3 +1 67 download ItemCache 1.0.0 releaseDownload


Share this:

This addon does nothing on its own. It is a helper for other addons.  


ItemCache remembers data about items when they are loaded. It can be run as an addon so that the cache persists between sessions, or it can be embedded into another addon as a library.  
Documentation (WIP)  
Example code  
local ItemCache = LibStub(“ItemCache”)  — Load the library

local hearthstone = ItemCache:Item(6948) — Returns an Item object for an item with id 6948 (Hearthstone)  
print(hearthstone:GetLink()) — Returns the item link for the item. Will return nil if the item is not cached (hearthstone probably is!)  

local healingBoots = ItemCache:Item(30680, -26) — Returns an Item object for Glider’s Boots of Healing  
  print(item:GetLink()) — Never returns nil (as long as the item actually exists)  
end) — Prints the item link as soon as the item is in the cache. Also loads the item if it is not yet cached.  

print(healingBoots:IsCached()) — Returns true if the boots have been seen before, false otherwise  
print(healingBoots:IsLoaded()) — Returns true if the boots are currently loaded by the game (GetItemInfo will be populated), false otherwise  
healingBoots:Load() — Attempts to load the item into memory so that GetItemInfo will be populated  
healingBoots:Cache() — Same as above but does nothing if the item has already been seen  


Add a comment