Is it possible to clean Redis cache from code in litium

During the import of a large number of products, we would like to clean the Redis cache before we do the import. Is it possible to do programmatically?

No there is nothing built-in in Litium for that. You need to call their API by your own processess if they support such functionality.