Moved clearCache() to Cache class, fixes #100.