set method
Set cached data (writes to both memory and disk)
Implementation
Future<void> set(String key, T data, {Duration? ttl}) async {
memoryCache.set(key, data, ttl: ttl);
if (diskCache != null) {
await diskCache!.set(key, data, ttl: ttl);
}
}