There is a class
\Sellacious\Cache\Builder\ProductsCacheBuilder
To rebuild entire cache you need to run following code
$builder = new ProductsCacheBuilder;
$builder->build();
To rebuild cache for specific products you need to run following code. The rebuild method accepts an integer, or an array of integers. Just make sure not to pass many product ids in a single call. Using an array of ~50 products should be fine.
If you have more that 50 products to refresh, you can always call into several chunks of ~50 products in separate calls.
$builder = new ProductsCacheBuilder;
$pks = 1207; // The numeric product id or an array of numeric product ids
$builder->rebuild($pks);
There are few more functions, which you should usually not require:
// To delete some of the cache records
$builder->remove($filter);
// To update some fields in the cache records matching a criteria, such as set stock = 100 for seller id = 234 etc.
$builder->update($batch);
If you need more details about these, you can see the code in the file:
plugins/system/sellaciouscache/sellaciouscache.php