Update functions per style guide
Merge pull request #9 from kpdecker/named-cache-entry

Create named classes for cache objects
Fix total byteSize tracking in connection

Previously no tracking was done so the cache size was effectively infinite.

This fixes #7