public async Task <Asset> GetAsset(UInt256 assetId) { var raw = await _redisDbContext.Get(assetId.BuildStateAssetKey()); return(raw.IsNull ? null : _binarySerializer.Deserialize <Asset>(raw)); }
public async Task DeleteAsset(UInt256 assetId) { await _redisDbContext.Delete(assetId.BuildStateAssetKey()); }
public async Task <Asset> GetAsset(UInt256 assetId) { var raw = await _redisDbJsonContext.Get(assetId.BuildStateAssetKey()); return(raw.IsNull ? null : _jsonConverter.DeserializeObject <Asset>(raw)); }