function CacheFactory(id) {
  if(!id)
    return;
  if(!caches[id])
    caches[id] = new Cache();
  return caches[id];
}
/* more of a singleton manager than a factory */
more of a singleton manager than a factory
more of a singleton manager than a factory
function CacheFactory(id) {
  if(!id)
    return;
  if(!caches[id])
    caches[id] = new Cache();
  return caches[id];
}
function CacheFactory ( id ) { if ( ! id ) return ; if ( ! caches [ id ] ) caches [ id ] = new Cache ( ) ; return caches [ id ] ; }
more of a singleton manager than a factory
more of a singleton manager than a factory