cache function
Get the cache instance. Throws StateError if cache is not initialized.
Implementation
NyCache cache() {
final nyCache = backpackNylo().getCache;
if (nyCache == null) {
throw StateError('Cache not initialized');
}
return nyCache;
}