org.diirt.datasource.timecache.CacheFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-timecache Show documentation
Show all versions of datasource-timecache Show documentation
Local cache for time series gathered from multiple sources.
The newest version!
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.timecache;
/**
* Handles {@link Cache} singleton.
* @author Fred Arnaud (Sopra Group) - ITER
*/
public class CacheFactory {
public static Cache cache = null;
public static Cache getCache() {
if (cache == null)
cache = new CacheImpl();
return cache;
}
}