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

io.github.sinri.keel.cache.impl.KeelCacheDummy Maven / Gradle / Ivy

Go to download

A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.

The newest version!
package io.github.sinri.keel.cache.impl;

import io.github.sinri.keel.cache.KeelCacheInterface;

import javax.annotation.Nonnull;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class KeelCacheDummy implements KeelCacheInterface {

    @Override
    public long getDefaultLifeInSeconds() {
        return 0;
    }

    @Override
    public KeelCacheInterface setDefaultLifeInSeconds(long lifeInSeconds) {
        return this;
    }

    @Override
    public void save(@Nonnull K key, V value, long lifeInSeconds) {

    }

    @Override
    public V read(K key) {
        return null;
    }

    @Override
    public V read(@Nonnull K key, V fallbackValue) {
        return fallbackValue;
    }

    @Override
    public void remove(@Nonnull K key) {

    }

    @Override
    public void removeAll() {

    }

    @Override
    public void cleanUp() {

    }

    @Override
    public ConcurrentMap getSnapshotMap() {
        return new ConcurrentHashMap<>();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy