예제 #1
0
        public virtual async Task SetMany(IsolatedSetManyCommand command, CancellationToken cancellationToken = default)
        {
            if (Computed.IsInvalidating())
            {
                return;
            }
            var keyChecker = await GetKeyChecker(command.Session, cancellationToken).ConfigureAwait(false);

            var items    = command.Items;
            var newItems = new (string Key, string Value, Moment? ExpiresAt)[items.Length];
예제 #2
0
 public Task SetMany([FromBody] IsolatedSetManyCommand command, CancellationToken cancellationToken = default)
 {
     command.UseDefaultSession(SessionResolver);
     return(Store.SetMany(command, cancellationToken));
 }