Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.
This repository was archived by the owner on Aug 9, 2020. It is now read-only.

There is no option to clean the cache. #123

@qianshengta

Description

@qianshengta
    @LifeCache(duration = 60, timeUnit = TimeUnit.MINUTES)
    Observable<Reply<HttpResponse<LoginUsr>>> testCacheForOneClearGroupTwoWith
    (Observable<HttpResponse<LoginUsr>> observable, DynamicKeyGroup dynamicKeyGroup,
     EvictProvider evictProvider);

This is my API.According to the document.The difference in the incoming "EvictProvider "can achieve the purpose of a selective cleanup cache.
For Example:
If I pass in "EvictDynamicKeyGroup", he will clear the cache in detail (key1,key2).
If I pass in "EvictDynamicKey", he will clear all caches under (key1).
If I pass in "EvictProvider", he will clear all caches under the API.
But what I'm trying to do is, regardless of what I'm passing in, he's just going to clear a cache of exactly what's going on (key1, key2)?

    RequestFactory.getStartCacheRequest().testCacheForOneClearGroupTwoWith(new
                HttpRxObservable<LoginUsr>().getObservable(RequestFactory.getStartRequest()
                .testForOne(token), provider), new DynamicKeyGroup(key, keyTwo), new
                EvictDynamicKey(isClear)).subscribe(StartObserverRepository.testForOneObserver
                (provider, callBack));

        RequestFactory.getStartCacheRequest().testCacheForOneClearGroupTwoWith(new
                HttpRxObservable<LoginUsr>().getObservable(RequestFactory.getStartRequest()
                .testForOne(token), provider), new DynamicKeyGroup(key, keyTwo), new
                EvictProvider(isClear)).subscribe(StartObserverRepository.testForOneObserver
                (provider, callBack));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions