public async Task <byte[]> GetAsync(string key, CancellationToken token = default)
        {
            token.ThrowIfCancellationRequested();

            var rowSet = await this.cacheOptions.Session.ExecuteAsync(this.CreateGetBoundStatement(key));

            return(CassandraCacheHelper.GetReturnValue(rowSet));
        }
        public byte[] Get(string key)
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            var boundStatement = this.preparedStatements[DbOperations.Select].Bind(key).SetConsistencyLevel(this.cacheOptions.ReadConsistencyLevel);

            var rowSet = this.cacheOptions.Session.Execute(boundStatement);

            return(CassandraCacheHelper.GetReturnValue(rowSet));
        }
        public async Task <byte[]> GetAsync(string key, CancellationToken token = default(CancellationToken))
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            token.ThrowIfCancellationRequested();

            var boundStatement = this.preparedStatements[DbOperations.Select].Bind(key).SetConsistencyLevel(this.cacheOptions.ReadConsistencyLevel);

            var rowSet = await this.cacheOptions.Session.ExecuteAsync(boundStatement);

            return(CassandraCacheHelper.GetReturnValue(rowSet));
        }
        public byte[] Get(string key)
        {
            var rowSet = this.cacheOptions.Session.Execute(this.CreateGetBoundStatement(key));

            return(CassandraCacheHelper.GetReturnValue(rowSet));
        }