Module bus.auth

Class DefaultCache

java.lang.Object
org.miaixz.bus.auth.cache.DefaultCache
All Implemented Interfaces:
Cache

public class DefaultCache extends Object implements Cache
  • Method Details

    • build

      public static io.vertx.core.Future<Cache> build(io.vertx.core.Vertx vertx)
    • exists

      public io.vertx.core.Future<Boolean> exists(String key)
      Specified by:
      exists in interface Cache
    • delete

      public io.vertx.core.Future<Boolean> delete(String key)
      Specified by:
      delete in interface Cache
    • set

      public <T> io.vertx.core.Future<Void> set(String key, T obj)
      Specified by:
      set in interface Cache
    • set

      public <T> io.vertx.core.Future<Void> set(String key, T obj, Duration expire)
      Specified by:
      set in interface Cache
    • get

      public <T> io.vertx.core.Future<T> get(String key, Class<T> clazz)
      Specified by:
      get in interface Cache