-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Using NUnit.
`
var db = _redis.GetDatabase();
var pipeline = new Pipeline(db);
var setTask =
pipeline.Json.SetAsync(key, "$", value, when);
_ = pipeline.Db.KeyExpireAsync(key, ttl);
pipeline.Execute();
return await setTask;
`
Exception:
System.NotSupportedException : Nested batches are not supported at StackExchange.Redis.RedisDatabase.CreateBatch(Object asyncState) in /_/src/StackExchange.Redis/RedisDatabase.cs:line 24 at NRedisStack.Pipeline..ctor(IDatabase db) at NRedisStack.Auxiliary.SetInfoInPipeline(IDatabase db) at NRedisStack.Auxiliary.ExecuteAsync(IDatabaseAsync db, SerializedCommand command) at NRedisStack.JsonCommandsAsync.SetAsync(RedisKey key, RedisValue path, RedisValue json, When when)
Going to NRedisStack.Auxiliary, here is creating new pipeline (and new batch inside it):
So getting "System.NotSupportedException : Nested batches are not supported"
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working