Skip to content
Jaliborc edited this page Nov 26, 2011 · 22 revisions

The problem

It's common for World of Warcraft addons to require information of the items the player possesses, wether it is from the inventory, bank, vault, or even from other characters he owns. The problem is that, to be able to access such information, you can't rely on the server, as it only provides it on certain conditions. The solution sounds simple: addons much cache the information when it is available for later use. But, as addons can't share recorded databases, each add-on must implement its own caching system, or to require the installation of an already existent one. Both of them have flaws. For the first, users may end up having several copies of the same data running on their RAM (bad, but not awful) and each developer must code and maintain his own system (OH NO!). For the second, users must download the required dependency separately (hey, users don't have time for that!).

The solution

LibItemCache

An API on steroids

Why should I use it?

Supporting other caches

LibItemCache 💾

Using the Library
API
Data Specification
Advanced Uses

Exposing your Cache
Interface Protocol

Clone this wiki locally