* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class XCachePlugin extends Plugin
{
/**
*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
if (!xcache_isset($key)) {
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$success = xcache_set($key, serialize($value));
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$success = xcache_unset($key);