cache function

NyCache cache()

Get the cache instance

Implementation

NyCache cache() {
  if (backpackNylo().getCache == null) {
    throw Exception('Cache not initialized');
  }
  return backpackNylo().getCache!;
}