Basic cache

Completed the basic cache feature