pass key and value to cache.set()

This fixes the TypeError raised by not passing enough arguments to cache.set().