improved cache

change cache value from int to float
add new commands: cache-free and cache-used