Replaces the value of key with update(current); returning null removes it.
key
update(current)
Future<void> update<T>(String key, T? Function(T? current) transform) => set(key, transform(get<T>(key)), ttl: ttlOf(key));