Exemple #1
0
        public async Task <string> AppendTo <TProperty>(RedisValue id, Expression <Func <T, TProperty> > expression, RedisValue appendValue)
        {
            var propertyName = _parser.GetPropertyName(expression);

            var key = _storageKeyGenerator.GetKey(_typeDefinition, id);

            var current = await _database.HashGetAsync(key, propertyName).ConfigureAwait(false);

            current = $"{current}{appendValue}";

            await _database.HashSetAsync(key, propertyName, current).ConfigureAwait(false);

            return(current);
        }