Refactoring Associations cache

Reduce duplication
add clarity
Merge pull request #47 from ScotterC/association-cache-expiry

Refactoring Associations cache