public async Task CreateOrUpdatePropertiesAsync(long identifier, PropertiesStamp props) { var database = Connection.GetDatabase(); var key = TelegramPropKey(identifier); var value = JsonSerializer.Serialize(props); await database.StringSetAsync(key, value, TimeSpan.FromMinutes(15)); }
public async Task CreateOrUpdateAsync(long identifier, Dictionary <string, object> propertiesDictionary) { var stamp = new PropertiesStamp { Value = propertiesDictionary }; await cache.CreateOrUpdatePropertiesAsync(identifier, stamp); }