Check if cache store uses read/write for functions.

In addition to checking for []/[]= and set/get, also check
for functions like read/write.