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