cache method

Future<void> cache(
  1. String key, {
  2. Duration? ttl,
})

Cache this string

Implementation

Future<void> cache(String key, {Duration? ttl}) async {
  await EaseXCache.cacheData(key, this, ttl: ttl);
}