Added simple cache class.
Added simple test for cache class.