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

com.octo.android.robospice.command.RemoveDataFromCacheCommand Maven / Gradle / Ivy

package com.octo.android.robospice.command;

import com.octo.android.robospice.SpiceManager;
import com.octo.android.robospice.SpiceService;

public class RemoveDataFromCacheCommand extends SpiceManager.SpiceManagerCommand {
    private final Class clazz;
    private Object cacheKey;

    public  RemoveDataFromCacheCommand(SpiceManager spiceManager, Class clazz, Object cacheKey) {
        super(spiceManager);
        this.clazz = clazz;
        this.cacheKey = cacheKey;
    }

    @Override
    protected Void executeWhenBound(SpiceService spiceService) {
        spiceService.removeDataFromCache(clazz, cacheKey);
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy