Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/cookies / src / core / renewCache.ts
Size: Mime:
import { config } from '../config'
import { fromStringToCache } from './fromStringToCache'

export const updateCachedDocumentCookie = () => {
  const cookie = config.get('document').cookie
  config.set('cachedDocumentCookie', cookie)
}
export const renewCache = () => {
  console.debug('[@skava/cookie] renewing cache')
  updateCachedDocumentCookie()

  const cookie = config.get('document').cookie
  const cache = fromStringToCache(cookie)
  config.set('cache', cache)
}