(function($) {
    $.extend({
        _cacheData: [],
        _cache: function(name, value, options) {
            if (value === undefined) {
                if (this._isCached(name))
                    return this._cacheData[name];
                return false;
            }
            else if (value === null) {
                delete this._cacheData[name];
            }
            else {
                this._cacheData[name] = value;
            }
        },
        _isCached: function(name) {
            return (this._cacheData[name]);
        }
    });
})(jQuery);
