Refactor out into functions and move connection inside Client type
Refactor out into functions and move connection inside Client type

jamesrwhite/minicache,jamesrwhite/minicached,jamesrwhite/minicached,jamesrwhite/minicache