6
Has I understand you need to load class with:
xoops_load('cache') or xoops_load('xoopscache') for XOOPS 2.4.3.
Then you instantiate the class with:
$cache = XoopsCache::getInstance();
The you set the engine:
$cache->engine($name = 'file', $settings = array());
There are 5 engines available:
apc
file (default)
memcache
model(requires XOOPS 3.0)
xcache
You can use methods write, read, delete, clear.
You can get info about the available settings by looking into the engine classes (init method).