implemented and tested the AutoCache Mechanism

implemented and tested the AutoCache Mechanism