lib/cache.js
function Cache(cacheLoadParameter, cacheBackend) {

    // Ensure parameters are how we want them...
    cacheBackend = typeof cacheBackend === "function" ? cacheBackend : FilesystemBackend;
    cacheLoadParameter = cacheLoadParameter instanceof Array ? cacheLoadParameter : [cacheLoadParameter];

    // Now we can just run the factory.
    this.datastore = cacheBackend.apply(cacheBackend, cacheLoadParameter);

    // Instruct the backend to load up.
    this.datastore.load();
}
function Cache(cacheLoadParameter, cacheBackend) {

    // Ensure parameters are how we want them...
    cacheBackend = typeof cacheBackend === "function" ? cacheBackend : FilesystemBackend;
    cacheLoadParameter = cacheLoadParameter instanceof Array ? cacheLoadParameter : [cacheLoadParameter];

    // Now we can just run the factory.
    this.datastore = cacheBackend.apply(cacheBackend, cacheLoadParameter);

    // Instruct the backend to load up.
    this.datastore.load();
}
function Cache ( cacheLoadParameter , cacheBackend ) { // Ensure parameters are how we want them... cacheBackend = typeof cacheBackend === "function" ? cacheBackend : FilesystemBackend ; cacheLoadParameter = cacheLoadParameter instanceof Array ? cacheLoadParameter : [ cacheLoadParameter ] ; // Now we can just run the factory. this . datastore = cacheBackend . apply ( cacheBackend , cacheLoadParameter ) ; // Instruct the backend to load up. this . datastore . load ( ) ; }
Init cache wrapper for backend...
Init cache wrapper for backend ...