From 0fcead7592649a8c037410a7767ae2b76dd4321c Mon Sep 17 00:00:00 2001 From: Kirill Shaplyko Date: Sun, 26 May 2024 20:58:26 +0200 Subject: [PATCH] LifetimesService => CachePolicy --- snippets/adapters/cache-lifetime/new.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/adapters/cache-lifetime/new.js b/snippets/adapters/cache-lifetime/new.js index c66a113..a73ecd1 100644 --- a/snippets/adapters/cache-lifetime/new.js +++ b/snippets/adapters/cache-lifetime/new.js @@ -1,11 +1,11 @@ -import { LifetimesService } from '@ember-data/request-utils'; +import { CachePolicy } from '@ember-data/request-utils'; import BaseStore from 'ember-data/store'; export default class Store extends BaseStore { constructor(args) { super(args); // This is default configuration that would be set automatically be Ember Data - this.lifetimes = new LifetimesService(this, { + this.lifetimes = new CachePolicy(this, { apiCacheSoftExpires: 30_000, apiCacheHardExpires: 60_000 });