RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
935 stars 368 forks source link

How ttl works when SaveMode.Ignore #326

Closed hyungryuk closed 2 years ago

hyungryuk commented 2 years ago

Is ignored key's ttl also reset?

fe2s commented 2 years ago

if dataframe exists in Redis - the entire save operation is ignored

hyungryuk commented 2 years ago

@fe2s thanx a lot. btw.. i just realized that Ignore mode also ignores dataframe key column when checking if the key exist. so no matter key column value is, all rows with same tablename are ignored!