We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51f219d commit 0fcead7Copy full SHA for 0fcead7
snippets/adapters/cache-lifetime/new.js
@@ -1,11 +1,11 @@
1
-import { LifetimesService } from '@ember-data/request-utils';
+import { CachePolicy } from '@ember-data/request-utils';
2
import BaseStore from 'ember-data/store';
3
4
export default class Store extends BaseStore {
5
constructor(args) {
6
super(args);
7
// This is default configuration that would be set automatically be Ember Data
8
- this.lifetimes = new LifetimesService(this, {
+ this.lifetimes = new CachePolicy(this, {
9
apiCacheSoftExpires: 30_000,
10
apiCacheHardExpires: 60_000
11
});
0 commit comments