Cache library template; little correction
Cache library implemented, compilation OK