Corrected indexing bugs that made cached items irretrevable.
Corrected a TTL bug that essentially made items never expire.

The redis handler takes a ttl, but was instead passed a timestamp- a
huge number tha essentially prevented things from being expired.

This commit also prevents items with a negative ttl from being put into
redis.