// Path: app/src/main/java/com/ittianyu/pocenter/common/bean/ProjectBean.java
// public class ProjectBean {
//     public int id;
//     public String projectId;
//     public String title;
//     public String description;
//     public String price;
//     public int type;
//     public String cycle;
//     public int people;
//     public int status;
//     public Timestamp time;
//     public String reference;
//     public String url;
// 
// 
//     @Override
//     public String toString() {
//         return "ProjectBean{" +
//                 "projectId='" + projectId + '\'' +
//                 ", title='" + title + '\'' +
//                 ", description='" + description + '\'' +
//                 ", price='" + price + '\'' +
//                 ", type=" + type +
//                 ", cycle='" + cycle + '\'' +
//                 ", people=" + people +
//                 ", status=" + status +
//                 ", time=" + time +
//                 ", reference='" + reference + '\'' +
//                 ", url='" + url + '\'' +
//                 '}';
//     }
// }


import com.ittianyu.pocenter.common.bean.ProjectBean;
import java.util.List;
import java.util.concurrent.TimeUnit;
import io.reactivex.Observable;
import io.rx_cache2.DynamicKey;
import io.rx_cache2.EvictDynamicKey;
import io.rx_cache2.LifeCache;
package com.ittianyu.pocenter.common.api;




/**
 * Created by yu on 2017/1/17.
 */

public interface CacheApi {

    @LifeCache(duration = 15, timeUnit = TimeUnit.MINUTES)
// Path: app/src/main/java/com/ittianyu/pocenter/common/bean/ProjectBean.java
// public class ProjectBean {
//     public int id;
//     public String projectId;
//     public String title;
//     public String description;
//     public String price;
//     public int type;
//     public String cycle;
//     public int people;
//     public int status;
//     public Timestamp time;
//     public String reference;
//     public String url;
// 
// 
//     @Override
//     public String toString() {
//         return "ProjectBean{" +
//                 "projectId='" + projectId + '\'' +
//                 ", title='" + title + '\'' +
//                 ", description='" + description + '\'' +
//                 ", price='" + price + '\'' +
//                 ", type=" + type +
//                 ", cycle='" + cycle + '\'' +
//                 ", people=" + people +
//                 ", status=" + status +
//                 ", time=" + time +
//                 ", reference='" + reference + '\'' +
//                 ", url='" + url + '\'' +
//                 '}';
//     }
// }


// Path: app/src/main/java/com/ittianyu/pocenter/common/api/CacheApi.java
import com.ittianyu.pocenter.common.bean.ProjectBean;
import java.util.List;
import java.util.concurrent.TimeUnit;
import io.reactivex.Observable;
import io.rx_cache2.DynamicKey;
import io.rx_cache2.EvictDynamicKey;
import io.rx_cache2.LifeCache;

package com.ittianyu.pocenter.common.api;




/**
 * Created by yu on 2017/1/17.
 */

public interface CacheApi {

    @LifeCache(duration = 15, timeUnit = TimeUnit.MINUTES)
    Observable<List<ProjectBean>> getList(Observable<List<ProjectBean>> repo, DynamicKey key, EvictDynamicKey isUpdate);