private void Rebuilt() { Cache c = new Cache(100*1024*1024); var options = new Options() { BlockCache = c, CreateIfMissing = true, }; this._db = new DB(options, this._path); }
internal void Initilize() { string tempPath = Path.GetTempPath(); string randName = Path.GetRandomFileName(); LevelDB.Cache c = new LevelDB.Cache(100 * 1024 * 1024); var options = new Options() { BlockCache = c, CreateIfMissing = true, }; Database = new LevelDB.DB(options, "tmp/data/.sso/"); }