Get reads the cache value, calling the loader function to populate the cache putVal if it is not currently set.
ttl sets the expiration date of the cache putVal, after which time it will be reloaded. Setting ttl to nil will
prevent the cache from expiring.