I have around 3 mn records in my aerospike cache. My persistence is disk-based and I have allotted certain memory to it as well. On my different sets, I have several Secondary Indexes created which are contributing to the memory of the namespace. I have around 20 lakh expired objects and 10 mn evicted objects.
On server restart, my memory gets freed up.
My question is as the expired and evicted objects are stored in disk and are cleared from the disk on a cold start, are the indexes of these objects stored on RAM?
If yes, is there any other solution to clear those from RAM automatically?