or even something like set(key, value, options)

and options has both {maxAgeMs: xx, inMemoryTTL: yy}