Beispiel #1
0
        public void InitConsole(ConsoleId consoleId)
        {
            if (consoleId == null)
            {
                throw new ArgumentNullException(nameof(consoleId));
            }

            // We add an extra "jobId" record into Hash for console,
            // to correctly track TTL even if console contains no lines

            _connection.SetRangeInHash(consoleId.GetHashKey(), new[] { new KeyValuePair <string, string>("jobId", consoleId.JobId) });
        }
Beispiel #2
0
 public override void SetRangeInHash(string key, IEnumerable <KeyValuePair <string, string> > keyValuePairs)
 {
     _postgreSqlConnection.SetRangeInHash(key, keyValuePairs);
 }