Allow use of timeout=0 in Simple cache

Fixes #1212