Fixed foreach to use a better namespace.
Fixes #4 - cache TTL now configurable
Merge pull request #10 from wislon/makeCacheTTLConfigurable

Make cache ttl configurable