Example #1
0
 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);
 }
Example #2
0
 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/");
 }
Example #3
0
        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/");
        }