YUI 3.x Home -

YUI Library Examples: DataSource Utility: DataSource with Caching

Note: This is YUI 3.x. Looking for YUI 2.x?

DataSource Utility: DataSource with Caching

The DataSourceCache plugin enables caching on any DataSource to reduce high-latency calls to remote sources and reduce server load. In this example, the Cache's max value has been set to 3.

Send request to Yahoo! Web Search Webservice:

Use the plug() method to initialize the DataSourceJSONSchema plugin and pass in the configuration value max to set the maximum size.

Copyright © 2009 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings