SaveAsync() public method

public SaveAsync ( SQLite.SQLiteAsyncConnection db ) : Task
db SQLite.SQLiteAsyncConnection
return Task
        public PrivateKey CreateRandomAddress(string label, bool eighteenByteRipe = false)
        {
            var privateKey = new PrivateKey(label, eighteenByteRipe);
            privateKey.SaveAsync(DB);

            lock (_lock4privateKeysCache)
                _privateKeysCache = null;

            return privateKey;
        }
        public PrivateKey GeneratePrivateKey(string label = null, bool eighteenByteRipe = false, bool send = false, bool save = true)
        {
            var privateKey = new PrivateKey(label, eighteenByteRipe);
            if (save) privateKey.SaveAsync(DB).Wait();
            if (send) privateKey.SendAsync(this);

            lock (_lock4privateKeysCache)
                _privateKeysCache = null;

            return privateKey;
        }