Shazam memcache trim clear

Added methods that allow to clear and trim the memory cache