Created
September 6, 2012 06:51
-
-
Save nekman/3652267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package se.labs.cache; | |
| /** | |
| * | |
| * @author ne | |
| * | |
| */ | |
| public class ItemCacheFactory { | |
| /** | |
| * | |
| * @param cacheLoader | |
| * @param secondsBetweenReload | |
| * @return | |
| */ | |
| public static <T> ItemCache<T> create(final ItemCacheLoader<T> cacheLoader, final int secondsBetweenReload) { | |
| return new ItemCacheImpl<T>(cacheLoader, secondsBetweenReload); | |
| } | |
| /** | |
| * | |
| * @param cacheLoader | |
| * @return | |
| */ | |
| public static <T> ItemCache<T> create(final ItemCacheLoader<T> cacheLoader) { | |
| return create(cacheLoader, 600); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment