コード例 #1
0
        public static void Init(string cacheDir)
        {
            baseCacheDir = cacheDir;
            if (!Directory.Exists(cacheDir))
            {
                Directory.CreateDirectory(cacheDir);
            }

            cacheIndexManager = new CacheIndexManager(cacheDir + "/" + CACHE_INDEX_FILE_NAME);
            cacheIndexManager.LoadCacheIndex();
            Instance = new CacheManager();
            Instance.m_strCacheDir = cacheDir;
            //Console.WriteLine(cacheDir + "/" + CACHE_INDEX_FILE_NAME);
        }
コード例 #2
0
        public static void Init(string cacheDir)
        {
            baseCacheDir = cacheDir;
            if (!Directory.Exists(cacheDir))
            {
                Directory.CreateDirectory(cacheDir);
            }

            cacheIndexManager = new CacheIndexManager(cacheDir + "/" + CACHE_INDEX_FILE_NAME);
            cacheIndexManager.LoadCacheIndex();
            Instance = new CacheManager();
            Instance.m_strCacheDir = cacheDir;
            //Console.WriteLine(cacheDir + "/" + CACHE_INDEX_FILE_NAME);
        }