All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.tp.plugin.redis.cache.L1 Maven / Gradle / Ivy

The newest version!
package io.vertx.tp.plugin.redis.cache;

import io.vertx.core.Future;
import io.vertx.tp.plugin.cache.hit.AbstractL1;

/**
 * @author Lang
 */
public class L1 extends AbstractL1 {
    private transient final L1Channel channel;

    public L1() {
        this.channel = new L1Channel();
    }

    @Override
    public  Future readCacheAsync(final String key) {
        return this.channel.readAsync(key);
    }

    @Override
    public  T readCache(final String key) {
        return this.channel.read(key);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy