private async Task <long> LPushXCoreAsync(byte[] key, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new LPushX(connection.GetStream(), key, value); return(await command.ExecuteAsync()); }
private long LPushXCore(byte[] key, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new LPushX(connection.GetStream(), key, value); return(command.Execute()); }