<commit_before>import * as localForage from 'localforage'
import UniversalStorage from '@vue-storefront/core/store/lib/storage'
import { currentStoreView } from '@vue-storefront/store/lib/multistore'
import rootStore from '@vue-storefront/store'


export function initCacheStorage(key, localised = true) {
  const storeView = currentStoreView()
  const dbNamePrefix = storeView.storeCode ? storeView.storeCode + '-' : ''
  const config = rootStore.state.config
  const cacheDriver = config.localForage && config.localForage.defaultDrivers['orders'] || 'LOCALSTORAGE'<commit_msg>fixed cacheDriver defaults problem<commit_after>import * as localForage from 'localforage'
import UniversalStorage from '@vue-storefront/core/store/lib/storage'
import { currentStoreView } from '@vue-storefront/store/lib/multistore'
import rootStore from '@vue-storefront/store'


export function initCacheStorage(key, localised = true) {
  const storeView = currentStoreView()
  const dbNamePrefix = storeView.storeCode ? storeView.storeCode + '-' : ''
  const config = rootStore.state.config
  const cacheDriver = config.localForage && config.localForage.defaultDrivers['orders'] ? 
    config.localForage.defaultDrivers['orders'] : 
    'LOCALSTORAGE'
{'fraction_non_alphanumeric': 0.10876623376623376, 'fraction_numerical': 0.0, 'mean_word_length': 5.85, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2341075', 'n_tokens_mistral': 359, 'n_tokens_neox': 351, 'n_words': 77}