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

jdash.client.cache.NoOpCache Maven / Gradle / Ivy

The newest version!
package jdash.client.cache;

import jdash.client.request.GDRequest;

import java.util.Optional;

public final class NoOpCache implements GDCache {

    static final NoOpCache INSTANCE = new NoOpCache();

    private NoOpCache() {
    }

    @Override
    public Optional retrieve(GDRequest request) {
        return Optional.empty();
    }

    @Override
    public void put(GDRequest request, Object cached) {
    }

    @Override
    public void clear() {
    }
}