com.github.lontime.extredisson.provider.Provider Maven / Gradle / Ivy
The newest version!
package com.github.lontime.extredisson.provider;
import com.github.lontime.base.commonj.components.ComponentLifecycle;
import com.github.lontime.base.commonj.components.LazyComponent;
import com.github.lontime.extredisson.cache.R2LevelMapCache;
import com.github.lontime.shaded.org.redisson.api.LocalCachedMapOptions;
import com.github.lontime.shaded.org.redisson.client.codec.Codec;
/**
* RedissonProvider.
* @author lontime
* @since 1.0
*/
public interface Provider extends RedissonProvider, RedissonReactiveProvider, RedissonRxProvider, ComponentLifecycle, LazyComponent {
/**
* getLocalCachedMapCache.
* @param name name
* @param options options
* @param K
* @param V
* @return R2LevelMapCache
*/
default R2LevelMapCache l2Cache(String name, LocalCachedMapOptions options) {
return l2Cache(name, null, options);
}
/**
* getLocalCachedMapCache.
* @param name name
* @param options options
* @param codec codec
* @param K
* @param V
* @return R2LevelMapCache
*/
R2LevelMapCache l2Cache(String name, Codec codec, LocalCachedMapOptions options);
}