package com.qefee.pj.ecache.util;

import android.content.Context;

import com.qefee.pj.ecache.ECache;

/**
 * ECacheUtil.
 * <ul>
 * <li>date: 16/7/1</li>
 * </ul>
 *
 * @author tongjin
 */
public class ECacheUtil {

    private static ECache cache;

    public static ECache getCache() {
        return cache;
    }

    public static void init(Context context) {
        cache = new ECache(context);
    }


}

@@ -253,70 +253,245 @@
     
-public static ECache getCache() %7B%0A        return cache;%0A    %7D%0A
+/**%0A     * get a default Context.%0A     * should call %7B@link #init%7D first%0A     * @return ECache%0A     */%0A    public static ECache getCache() %7B%0A        return cache;%0A    %7D%0A%0A    /**%0A     * init a ECache.%0A     * @param context Context%0A     */
 %0A   

add javadoc