类 SampleCacheFactory

java.lang.Object
com.tlcsdm.frame.cache.SampleCacheFactory

public class SampleCacheFactory extends Object
SampleCache对象获取. 当引用caffeine时优先使用,否则使用SimpleSampleCache
作者:
unknowIfGuestInDream
  • 字段详细资料

    • SAMPLE_CACHE

      private static final SampleCache SAMPLE_CACHE
  • 构造器详细资料

    • SampleCacheFactory

      private SampleCacheFactory()
  • 方法详细资料

    • get

      public static Object get(String key)
      获取对象.
    • put

      public static void put(String key, Object sample)
      缓存对象.
    • containsKey

      public static boolean containsKey(String key)
      是否包含key值,存在返回true.
    • removeKey

      public static void removeKey(String key)
      移除key.
    • clear

      public static void clear()
      清空缓存.