2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add('cache-plugin', function(Y) {
11 * Plugin.Cache adds pluginizability to Cache.
16 function CachePlugin(config) {
17 var cache = config && config.cache ? config.cache : Y.Cache,
18 tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]),
19 tmpinstance = new tmpclass(config);
20 tmpclass.NS = "tmpClass";
26 * The namespace for the plugin. This will be the property on the host which
27 * references the plugin instance.
44 * @value "dataSourceCache"
50 Y.namespace("Plugin").Cache = CachePlugin;
54 }, '3.3.0' ,{requires:['plugin','cache-base']});