Skip to content

Instantly share code, notes, and snippets.

@nekman
Created September 6, 2012 09:02
Show Gist options
  • Select an option

  • Save nekman/3653364 to your computer and use it in GitHub Desktop.

Select an option

Save nekman/3653364 to your computer and use it in GitHub Desktop.
package se.labs.app;
import java.util.Properties;
import se.labs.cache.ItemCache;
import se.labs.cache.ItemCacheFactory;
import se.labs.cache.loaders.PropertyCacheLoader;
public class AppProperties {
private static final ItemCache<Properties> propertyCache = ItemCacheFactory.create(new PropertyCacheLoader(), 3600);
public static Properties getInstance() {
return propertyCache.getItem();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment