Rename RedisKeyLifetime to be nested in RedisKey
Motivation:
RedisKeyLifetime
already has "RedisKey" as a prefix so it naturally fits as a nested type.
Modifications:
- Change:
RedisKeyLifetime
to be nested inRedisKey
and namedLifetime
- Rename:
RedisKeyLifetime.Lifetime
toDuration
- Deprecate:
RedisKeyLifetime
and the nested typeLifetime
Result:
The global namespace is a little less cluttered with the types falling naturally where they already are.