Add a base cache decorator for repositories